TPDFlibDocumentFont
Data Types
Description
TPDFlibDocumentFont is a record structure that holds detailed properties of a font resource embedded or referenced within a PDF document.
Syntax
Delphi
type TPDFlibDocumentFont = record
FontID: Integer;
ObjNum: Integer;
BaseFont: WideString;
FontType: Integer;
Encoding: WideString;
Embedded: Boolean;
Subsetted: Boolean;
end;Fields
| FontID | The 1-based internal handle of the font, usable with standard font selection methods (e.g. SelectFont). |
|---|---|
| ObjNum | The raw PDF indirect object number of the font dictionary in the PDF catalog. |
| BaseFont | The PostScript name of the font (e.g., Helvetica-Bold or TimesNewRomanPSMT). |
| FontType | The type of the font represented as an integer from 1 to 11 (corresponds to type values 1=TrueType, 2=Type1, etc.). |
| Encoding | The name of the font's character encoding scheme (e.g., WinAnsiEncoding or Identity-H). |
| Embedded | Indicates whether the actual font program file is embedded in the PDF document. |
| Subsetted | Indicates whether the font is a subset of the original font program, which is typically marked by a 6-letter prefix followed by a plus sign (e.g., ARIALN+). |