14 messages in org.css-discuss.lists.css-d[css-d] font-family font sizes
FromSent OnAttachments
David SharpApr 24, 2007 3:07 am 
Simon WhiteApr 24, 2007 3:30 am 
Philippe WittenberghApr 24, 2007 3:54 am 
David SharpApr 24, 2007 10:50 pm 
Jukka K. KorpelaApr 25, 2007 2:57 pm 
Philippe WittenberghApr 25, 2007 4:53 pm 
Jukka K. KorpelaMay 17, 2007 2:44 pm 
Philippe WittenberghMay 17, 2007 7:03 pm 
Bruno FassinoMay 18, 2007 4:25 am 
Jukka K. KorpelaMay 18, 2007 8:03 am 
Jukka K. KorpelaMay 28, 2007 11:07 am 
Lori LayMay 28, 2007 1:37 pm 
Jukka K. KorpelaMay 28, 2007 1:54 pm 
Philippe WittenberghMay 28, 2007 5:19 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[css-d] font-family font sizesActions...
From:Philippe Wittenbergh (@)
Date:Apr 25, 2007 4:53:46 pm
List:org.css-discuss.lists.css-d

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>