THPDFUnresolvedGlyphInfo Record
One 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 reporting |
FontName | Name of the font that would have rendered the code point as .notdef tofu |
Script | Script classification of the code point, such as hfsCJK or hfsArabic |
SuggestedFonts | Comma list of installed fonts the fallback engine suggests for this code point |
Usage notes
- Collect findings live through the
OnUnresolvedGlyphevent, or pollGetUnresolvedGlyphsafterEndDoc; the underlying recorder dedupes repeat offenders AnalyzeUnresolvedGlyphschecks a whole string against a primary font before you draw, returning one record per unique failing code point and font pair- Use
Scriptto group findings by writing system andSuggestedFontsto pick a fallback font for the next run