THPDFUnresolvedGlyphInfo Record
A single code point the current font cannot map, with its script classification and suggested fallback fonts
Declaration
THPDFUnresolvedGlyphInfo= record
CodePoint: Cardinal;
FontName: AnsiString;
Script: THPDFFontScript;
SuggestedFonts: AnsiString;
end;
Unit
HPDFDoc
Fields
| Field | Purpose |
|---|---|
CodePoint | Unicode scalar value that could not be mapped; surrogate pairs are combined before being reported |
FontName | Name of the font that would have drawn the code point as .notdef tofu |
Script | Script classification for the code point, such as hfsCJK or hfsArabic |
SuggestedFonts | Comma-separated list of the installed fonts the fallback engine suggests for this code point |
Usage notes
- Collect findings live through the
OnUnresolvedGlyphevent, or pollGetUnresolvedGlyphsafterEndDoc; the recorder underneath de-duplicates repeat offenders AnalyzeUnresolvedGlyphschecks a whole string against a primary font before you draw, handing back one record per unique failing code point and font pairing- Use
Scriptto group findings by writing system, andSuggestedFontsto pick out a fallback font for the next run