Background: I'm trying to do font rendering using glyph-bitmaps and I need a way to verify that I'm rendering text in the correct size on the screen.
So when someone says: font-size: 64px
where this 64 should appear? I tried the same exercise in HTML, but now I'm more confused than before I started. This is how HTML renders text with font-size: 64px
. The red lines - me trying to fit a box of height: 64px
around these letters:
As you can see I can't find a way to match that 64px to the visual letters.
Can someone explain to me where this 64px should appear?
I know that font sizes is a very old thing that comes from physical paper presses and some spacing is taken into account too but isn't there any logic/rules in the digital age? Is it completely arbitrary in the font files? Let's say I'm making a new font: aren't there any guidelines on how 64px font should be sized?