View Full Version : Font Metrics
Magnus Norddahl
08-01-2008, 10:17 PM
Here's a simple visualization of what the different values of font metrics mean, and what negative font sizes means in regard to Windows:
http://esoteric.clanlib.org/~mbn/temp/FontMetrics.png
I'm posting it here as a reference for further font discussions on the #clanlib channel.
Magnus Norddahl
08-01-2008, 10:44 PM
The CSS documentation regarding font sizes: http://www.w3.org/TR/REC-CSS2/syndata.html#value-def-length
Based on this terribly poor documentation, I'm going to assume that the CSS documentation considers pixel values converted to point values for font selection. Thus, the pixel size also refers to the font height excluding the internal leading.
Last, the CSS documentation annoyingly assumes that the monitor DPI is 90 instead of 96 (thanks guys!), so their reference pixel size requires the size to be 6% taller than the number of pixels specified in the CSS. However, I'm gonna ignore that last bit, since the user would expect px to be monitor pixels. I wonder what web browsers do in this department.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.