mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-29 12:46:53 -06:00
A font's em box is its BASE em box; else it tops at the OS/2 typo ascender when the typo ascender and descender span exactly one em; else it is centred on half the cap height (OS/2 sCapHeight, else the H glyph's top), 0.5 em + cap / 2 above the baseline; else 0.88 em. The Em Box Height first baseline, vertical text and declared_em_box all use this one em box; declared_em_box is None only for the 0.88 em fallback.