View Single Post
Old 05-16-2013, 10:47 AM   #72
William Ockham
Enthusiast
William Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipseWilliam Ockham can illuminate an eclipse
 
Posts: 36
Karma: 8164
Join Date: Jul 2012
Device: Kindle Keyboard
Wow, there is an enormous amount of misinformation about line-height on this thread. Let's clear a few things up.

1. Fonts DO NOT contain any information about line-height. Font files describe how to draw glyphs in relation to the em square. If you are seeing line-height change based on font selection, you are seeing the result of a (very broken) user agent.

2. Line-height will ALWAYS be rendered in a whole number of device pixels. This is a fairly obvious physical constraint.

3. The equation of 1em = 16px is just a convention. It's a long story and not really relevant.

None of this stuff really matters as long as, if you are going to specify line-height, you do it in ems. Just realize that the value you specify will get rounded to the nearest number of device pixels, which isn't the same thing as the CSS px measurement.
William Ockham is offline   Reply With Quote