PDFium Delphi Component Docs

PdfDefaultTtfMapCount function

Unit: PDFium
Returns the number of entries in the PDFium default character-set to TrueType font-name map

Syntax

function PdfDefaultTtfMapCount: NativeUInt;

Parameters

None

Return Value

NativeUInt

Description

PdfDefaultTtfMapCount loads the selected PDFium module where necessary and returns the entry count of the built-in default character-set to TrueType font-name map through the native FPDF_GetDefaultTTFMapCount export

The count is the upper bound for the zero-based Index accepted by TryGetPdfDefaultTtfMapEntry

Remarks

Example

for I := 0 to PdfDefaultTtfMapCount - 1 do
  if TryGetPdfDefaultTtfMapEntry(I, Entry) then
    Memo.Lines.Add(Entry.FontName);

See Also

TryGetPdfDefaultTtfMapEntry, ConfigureSystemFontProvider