Skip to main content

Module cidfont

Module cidfont 

Source
Expand description

CID-keyed font support for Unicode (Japanese/CJK) text in PDF

This module implements Type 0 composite fonts with CIDFont descendants, which are required for proper Unicode text rendering in PDF.

Functionsยง

encode_text_utf16be
Encode text as UTF-16BE for use with CID-keyed fonts
generate_cidfont_dict
Generate a CIDFont dictionary (descendant of Type 0 font)
generate_cidfont_tounicode_cmap
Generate ToUnicode CMap for CID-keyed fonts
generate_cidtogidmap_stream
Generate CIDToGIDMap stream for mapping CIDs to actual glyph IDs
generate_type0_font_dict
Generate a Type 0 composite font dictionary for Unicode text