THPDFTrueTypeData.TryGetMetadata
function TryGetMetadata(out Metadata: THPDFTrueTypeMetadata): Boolean;
Reads bounded name, head, hhea, OS/2, post, glyf and loca metadata without going near a desktop font API
The method initialises the result record and returns false for missing required metrics, invalid sfnt signatures or head magic, invalid units per em or inverted font bounds
TrueType outline availability additionally checks loca format, extent, monotonic offsets and glyf bounds; CFF sfnt fonts can expose metadata whilst TrueTypeOutlines remains false
Optional name, OS/2 and post fields use explicit presence flags or documented defaults; every table and field access is checked before reading
The method is not a complete glyph-program validator and makes no rendering, shaping or embedding permission decision
Existing cmap and metric APIs keep their original behaviour; the strict Unicode appearance profile uses the additional HasUnicodeCmap and UnicodeGIDForCodepoint methods