Unit: PDFium
function GetSystemFontData(const FontName: string; Weight: Integer = 400; Italic: Boolean = False; Charset: Integer = 0): TBytes;
Resolves one installed face to its TrueType program so callers can embed, subset or inspect the program for themselves
Remarks
- Returns an empty array when the family is not installed; the request goes through the same platform lookup the text engine uses, and a TrueType collection is replaced by the requested face program
- The returned bytes are a plain sfnt program, not a PDF font object: embedding, subsetting and /ToUnicode authoring remain the caller's responsibility
- Static XFA flattening consumes such a program through
TPdfXfaFlattenOptions.AppearanceFontData to write characters outside the WinAnsi set
- A CFF-flavoured program cannot back the Identity-H appearance face, which needs TrueType outlines
See Also