Re: [WSG] Font-size-adjust (was: RE: Disabling Fonts in Font Stacks)

2007-12-02 Thread Philippe Wittenbergh


On Dec 3, 2007, at 6:05 AM, Terrence Wood wrote:


If, in laymans terms, font-size-adjust allows you to specify the
font-size based on the x-height of a preferred font-family, how is a
rendering engine supposed to deal with this if said font is missing?


Font-size-adjust works based on the first font specified in the list  
for font-family, doesn't matter if the font exists on the system or not.


example.
p {font-family: 'Lucida Grande', Arial, sans-serif; font-size-adjust: 
0.54;}
On Win OS, Lucida Grande is not present (OS X only font), the size of  
the text will nevertheless be adjusted (slightly enlarged) as Arial  
has an aspect ratio of 0.52. This is interesting in the case of a  
stylesheet that specifies 'Verdana, Arial, sans-serif', and where the  
page author bases all his work on the size of Verdana (we all know  
that this is big font, with rather large aspect ratio). Verdana at  
12px maybe or not be readable to the user, Arial at 12px looks and  
feels much smaller, and will probably be harder to read for the user.



And how does it resolve line-height issues for fonts that have a low
aspect ratio?


Could you clarify ?
Line-height depends on the used value for font-family, basically.



Personally, I would like to see some decent column support before
trying to exert this degree of control on font-sizing.


Philippe
---
Philippe Wittenbergh
http://emps.l-c-n.com





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Font-size-adjust (was: RE: Disabling Fonts in Font Stacks)

2007-12-02 Thread Terrence Wood
On 12/3/07, Philippe Wittenbergh [EMAIL PROTECTED] wrote:

  If, in laymans terms, font-size-adjust allows you to specify the
  font-size based on the x-height of a preferred font-family, how is a
  rendering engine supposed to deal with this if said font is missing?
My thinking was way off here - I was thinking that somehow only the
bowl was adjusted. Strange but true.

I can see now how handy this property could be.

Pretty good explanation at
http://www.quackit.com/css/properties/css_font-size-adjust.cfm:

...if 12px Georgia (with an aspect value of 0.50) was unavailable and
an available font had an aspect value of 0.40, the font-size of the
substitute would be 12 * (0.50/0.40) = 15px.

kind regards
Terrence Wood.


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***