Expand description
Shared font name / weight helpers (DRY across Type1 / Type3 / TrueType).
Functionsยง
- resolve_
base_ font_ name - Prefer
/BaseFont, thenFontDescriptor /FontName, else"Unknown". - resolve_
font_ weight - Resolve final numeric weight:
/FontWeightโ name token โ StemV. - weight_
from_ font_ name - Parse a CSS / OpenType weight from a PostScript or variable-font name.