- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Thu, 22 Jan 2015 14:02:25 -0800
- To: Marat Tanalin <mtanalin@yandex.ru>
- Cc: Onur TOPAL <o_topal@yahoo.com>, "www-style@w3.org" <www-style@w3.org>
On Thu, Jan 22, 2015 at 11:40 AM, Marat Tanalin <mtanalin@yandex.ru> wrote: > 22.01.2015, 22:14, "Tab Atkins Jr." <jackalmage@gmail.com>: >> Usually, when you're dealing with fonts that are >> "different size" when given the same font-size, what you're trying to >> do is match up the "x-height", as that is an important visual cue when >> reading, and it disturbs our eyes to see it change within a line. >> font-size-adjust does does for you automatically. > > A common issue with using downloadable fonts is that they may be much _narrower_ (horizontally, height has nothing to do with this) than default OS fonts, and this difference in character width may break page layout (e.g. if a horizontal menu uses {display: table} and close-packed arrangement of words in conjunction with a narrow downloadable nonstandard font). One should be careful when choosing fallback fonts to find ones that are similar in appearance, and be careful when designing a page to make your layout robust enough to accommodate font differences (particularly as users may have forced the font-size to be larger than you originally designed the page with). > What would probably be a real solution is to have in CSS something like Font Loading API in JS: > > http://www.w3.org/TR/css-font-loading/ That's called "the @font-face rule". ~TJ
Received on Thursday, 22 January 2015 22:03:13 UTC