Meaning of Font Size
Let's say you use CSS to specify
Ok, it's 16 pixels. But what does it mean exactly? is it height of M? or width of M? Neither!
What Does Font Size Mean Exactly?
The CSS font size of a font is the “em height”.
“em height” is the height of a imaginary design box around the font that includes space for ascender and descender plus a little padding.
“em height” is not the bounding box. (“bounding box” is not a concept in typography.)
The actual height of letter M, differs depending on the font used.
Some character, such as Ü , may extend beyond this design box.
Perceived Font Size
Different font with same CSS size spec may be very different CAPTICAL LETTER height, because the ratio of CAPS height to “font size” is not standardized.
For example, compare:
font-size: 50px; font-family: sans-serif;
font-size: 50px; font-family: serif;
If you have a question, put $5 at patreon and message me.