W3C home > Mailing lists > Public > www-style@w3.org > March 2012

Re: [CSS] font-size-adjust curiosity

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sun, 4 Mar 2012 17:26:32 -0800
Message-ID: <CAAWBYDAmDRNfPfbxWBOhhKwTdpY4yReJwqnScdyxhmonFdLhcg@mail.gmail.com>
To: Philippe Wittenbergh <ph.wittenbergh@l-c-n.com>
Cc: W3C www-style mailing list <www-style@w3.org>, Schalk Neethling <sneethling@mozilla.com>
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.

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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:13 UTC