Expand description
TrueType font embedding support for PDF
Provides functionality to embed TrueType/OpenType fonts in PDF documents.
Structs§
- Font
Manager - Manages embedded fonts in a PDF document
- Font
Subsetter - Tracks character usage for font subsetting
- PdfFont
- Embedded TrueType font information
Functions§
- generate_
cidfont_ dict - Generate CIDFont Type 2 dictionary (TrueType descendant font) This is referenced by the Type 0 font and contains the actual font metrics
- generate_
font_ descriptor - Generate PDF font descriptor object content
- generate_
font_ dictionary - Generate PDF font dictionary object content (Type 0 composite font for Unicode support)
- generate_
font_ stream_ header - Generate PDF font stream object header
- generate_
to_ unicode_ cmap - Generate a ToUnicode CMap for CID fonts Maps CID (character IDs) to Unicode code points
Type Aliases§
- Font
Object Tuple - Font object tuple: (descriptor_id, stream_id, cidfont_id, type0_dict_id, to_unicode_id, cidtogidmap_id, font)