function TryGetPdfDefaultTtfMapEntry(Index: NativeUInt;
out Entry: TPdfDefaultTtfMapEntry): Boolean;
| Index | NativeUInt |
| Entry | TPdfDefaultTtfMapEntry |
BooleanTryGetPdfDefaultTtfMapEntry loads the selected PDFium module where necessary and reads the map entry at the zero-based Index through the native FPDF_GetDefaultTTFMapEntry export
On success Entry holds the Charset integer and the FontName string of the pair; on failure Entry is left at its default value
The function returns False when Index reaches or exceeds the count reported by PdfDefaultTtfMapCount or when the native entry pointer is nil
FontName remains empty when the native fontname pointer is nil even though the entry itself was returned
if TryGetPdfDefaultTtfMapEntry(0, Entry) then
ShowMessage(Format('Charset %d: %s', [Entry.Charset, Entry.FontName]));