px vs em revisited
Out of context: Reply #17
- Started
- Last post
- 22 Responses
- stewdio0
@ETM I like your thinking.
I had to revisit this topic myself last autumn and after much futzing came to a slightly different conclusion which was to set all type sizes in points. (I can already hear a collective gasp from my fellow RGBers!) The reason is that font hinting seems to be at its crispest at regular point sizes. I've tested this a few different ways and using a regular point size always yields the sharpest results.
But for leading (line-height) I use pixels. This is so I can create a baseline grid that images and other non-type elements all align to. Although no method is perfect I've been happy with the results both in regular browsers and on iOS.
This hodge podge of counter intuitive CSS units is so frustrating. Would be lovely to spec out a whole new CSS system. Some combination of http://lesscss.org and more consistent units.