4 ms·
Agreed, this definitely goes off on a tangent. The article is mostly about switching two fonts with the expectation that the visual size of the characters rema
by sings 6y ago
Agreed, this definitely goes off on a tangent.
The article is mostly about switching two fonts with the expectation that the visual size of the characters remains consistent. That expectation fails because the em size is arbitrary with respect to the visible caps-height.
As it stands, fonts can have drastically different rendered sizes at the same specified font size. This leads to all sorts of problems, like ensuring fallback fonts have similar metrics to the one you expect to load.
- dragonwriter 6y ago> The article is mostly about switching two fonts with the expectation that the visual size of the characters remains consistent. That expectation fails because the em size is arbitrary with respect to the visible caps-height. It would fail with caps-height, too, as other visible measures of characters (not just abstract ones like em) have no guaranteed consistent relationship to caps-height, so, as such, there's no guarantee that fonts with the same caps-height have the same “visual size”, or even visual vertical size, since cap height doesn't i close descender and ascender height.
- amelius 6y agoPerhaps we should have a "median-height" property, for specifying the median height of the actual glyphs in the text.