Re: [CSS] font-size-adjust curiosity

On Sun, Mar 4, 2012 at 4:13 PM, Philippe Wittenbergh
<ph.wittenbergh@l-c-n.com> wrote:
> On Mar 5, 2012, at 6:05 AM, Tab Atkins Jr. wrote:
>> font-size-adjust lets you size fonts by specifying their ex size
>> rather than their em size.
>
> Uh, no, that is not what font-size-adjust does.
>
> font-size-adjust  allows the author to specify the aspect-ratio of the preferred font, and this makes it possible to resize the fallback font to match the size of the preferred font.
> http://dev.w3.org/csswg/css3-fonts/#font-size-adjust-prop

What David said.  When you specify:

.foo { font-size: 20px; font-size-adjust: .6; }

...you are in effect saying "size the font so that the x-height is
12px" rather than "size the font so that the em-height is 20px".

Fallback fonts are *always* the same size as the main font, because
they all use the same font-size declaration.  font-size-adjust just
lets you change what you're using to define "size", because having the
same x-height can be visually more appealing when mixing fonts.

~TJ

Received on Monday, 5 March 2012 01:27:20 UTC