Expand description
System font loading: TTF/OTF → PostScript font dictionaries.
Loads TrueType (.ttf) and OpenType (.otf) fonts from the filesystem, constructing Type 42 font dicts (for TrueType outlines) or delegating to the CFF parser (for CFF outlines).
Functions§
- is_
cff_ font - Detect whether a font file contains TrueType or CFF outlines.
- load_
binary_ font - Load a binary font file (TTF or OTF), auto-detecting the format.
- load_
otf_ cff - Load an OTF file with CFF outlines.
- load_
ttf - Load a TrueType font and register it as a Type 42 PostScript font.
- load_
ttf_ from_ data - Load a TrueType font from raw data and register as Type 42.