News for hackers. Stuff that matters.
Re:Let’s fix font size by sings on Tuesday March 30, 2021 @05:42PM (#26640916)
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.

Re:Let’s fix font size by dragonwriter on Wednesday March 31, 2021 @05:50AM (#26645284)
> 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.

Re:Let’s fix font size by amelius on Wednesday March 31, 2021 @08:23AM (#26646275)
Perhaps we should have a "median-height" property, for specifying the median height of the actual glyphs in the text.