On Thursday 2007-05-17 14:18 -0400, Sam Carter wrote:
> Wouldn't it make more sense to simply enable or disable font-size-adjust?  
>  
> What am I missing?

I tried to explain this a bit better in
http://developer.mozilla.org/en/docs/CSS:font-size-adjust The basic
idea is that when you specify font-size-adjust, you're choosing to
specify the size of the font by the height of its lowercase letters
rather than by the font size [1].  But to do it in a
backwards-compatible way, you specify a number to multiply the
font-size by.  So saying:
  font-size: 20px;
  font-size-adjust: 0.58;
means "I want the font's size to be whatever makes the lowercase
letters 20px * 0.58 == 11.6px tall".  In browsers that don't support
font-size-adjust, this will then degrade gracefully to using the
font size of 20px.

Specifying the font size by the height of the lowercase letters
means that when you switch fonts, it's the height of the lowercase
letters that stays consistent, which is often desirable (such as
when switching into a monospace font for a few words).

(The other thing you're missing is that simply having enable/disable
wouldn't work when the first choice font was missing, and it
wouldn't work when the font-size-adjust value was inherited to an
element with a different list of fonts.)

Also, for what it's worth, Gecko 1.9 (Firefox 3) will support
font-size-adjust on all platforms (rather than just Windows).

-David

[1] Please don't ask what the definition of a font size is.

-- 
L. David Baron                                <URL: http://dbaron.org/ >
           Technical Lead, Layout & CSS, Mozilla Corporation

Attachment: pgpLtUsm5BpEh.pgp
Description: PGP signature

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to