Jukka K. Korpela wrote:

> On Tue, 24 Apr 2007, Philippe Wittenbergh wrote:
>
>> font-size-adjust is support by Gecko (Firefox) on Windows.
>> Firefox 3.0/Gecko 1.9 will have support for it on all platforms.
>> Unfortunately, no other browser support it at the time of writing.
>
> That's interesting news. But presumably there won't be any support  
> in IE
> in the foreseeable future.
>
> And I don't quite get the idea. The property is supposed to help in
> situations like
>
> font-family: Verdana, Arial, sans-serif;
>
> so that I can handle the problem that Verdana looks larger than  
> Arial of
> the same size, so if I set the size suitable for Verdana, it will be
> too large for Arial. But it is supposed to help so that the browser
> analyzes the properties (basically, x height) of the fonts listed, the
> adjusts the font size accordingly. How can this help? If my system has
> Verdana, it will be used, and the problem does not arise. If my  
> system has
> no font under that name, how is the browser expected to know the
> properties of the font?
>
> So it seems that this could only help when the primarily suggested  
> font
> (and thus its font information) _is_ available but its use has been
> prevented. This is a possible scenario, but hardly a common one.

font-size-adjust works on the first specified font-family in the  
stylesheet.

You know that the value for Verdana is 0.58 [1]. You specify that.
If you have 'Verdana', no problems arise, as you say. If 'Verdana' is  
not available, the size of the font that is  actually used will be  
enlarged or reduced to match the aspect value of 'Verdana'.

Here is a test case. The first paragraph doesn't have a value for  
font-size-adjust specified; the second has.
<http://dev.l-c-n.com/_temp/font-size-adjust.html>
Remove/disable 'Verdana' on your system.
It then looks like this on my system (OS X, Gecko latest trunk build):
<http://dev.l-c-n.com/_b/font-size-adjust.png>

The only problem I have atm is finding the aspect value for a given  
font. The font contains that information, but I haven't found an  
utility to tell me that value, nor any resource for it - especially  
for fonts I don't have.

[1] <http://www.w3.org/TR/REC-CSS2/fonts.html#propdef-font-size-adjust>
<http://www.w3.org/TR/css3-fonts/#font-size-props>

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




______________________________________________________________________
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