THPDFPage.GetEmbeddedGlyphID Method
Byte-backed cmap results outside the selected font's glyph count return False with glyph zero, keeping ordinary text and metric lookups within that font's glyph domain
Resolves one Unicode scalar to the exact glyph ID in the current caller-owned embedded font
Declaration
function GetEmbeddedGlyphID(
Codepoint: Cardinal;
out GlyphID: Word): boolean;
Behavior
- Uses the cached BMP cmap for values through
$FFFF - Uses a binary search over the cached format 12 supplementary map for larger valid scalars
- Returns false and sets
GlyphIDto zero for an unmapped or invalid scalar
Related APIs
THPDFPage.SetEmbeddedGlyphFont · THPDFPage.DrawEmbeddedGlyphRun