THPDFTrueTypeData.BuildSimpleFontGlyphMap

Unit: HPDFFontData

function BuildSimpleFontGlyphMap(out Map: THPDFSimpleFontGlyphMap): THPDFSimpleFontMapStatus;

Build a physical mapping from PDF byte codes 0 through 255 to glyph IDs in this single-font sfnt

A declared Windows symbol mapping is authoritative and must be a valid format 4 subtable; its supported single byte-code window, segment ordering, glyph addresses and glyph bounds are validated before publication

Only when no Windows symbol mapping is declared may a compatible Macintosh format 0 or format 6 byte mapping supply the fallback; an unselected malformed Macintosh declaration is ignored when a valid symbol mapping exists

Malformed offsets or lengths, unsupported formats and duplicate declarations in the selected byte-mapping family return sfmInvalid rather than disappearing into an absent-mapping fallback; a declared invalid symbol mapping never falls back to Macintosh

sfmAbsent means there is genuinely no symbol or Macintosh byte-mapping declaration, including a font with only Unicode cmap records; a valid all-notdef mapping instead returns sfmValid with unmapped array entries

Only use the array after sfmValid; each unmapped entry remains $FFFFFFFF, and glyph zero is not substituted for it

This method does not return Unicode and does not interpret PDF text strings, a ToUnicode stream or an arbitrary declared PDF Encoding

For the loaded decoder's missing or null Encoding and Symbolic-font policy, see THPDFFontDecoder; explicit Unicode lookup remains separate through UnicodeGIDForCodepoint

THPDFTrueTypeData · THPDFSimpleFontGlyphMap · BuildUnicodeByGID