| Category | Font-object introspection |
|---|---|
| Note | several output fields are hardcoded, not derived (see Remarks) |
Purpose — Read extended info from a PFNT snapshot.
Declarations
BOOL32 __stdcall fntGetFontInfo(PFNT IFont, TPDFFontInfo* F);
function fntGetFontInfo(const IFont: PFNT; var F: TPDFFontInfo): LongBool; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IFont | PFNT | Snapshot handle. |
F | TPDFFontInfo* | Receives FamilyName, FullName, Style, BaseType (fbtTrueType or fbtStdFont), IsEmbedded — all real — plus the fields below, which are not. |
Return value — TRUE if IFont is non-NULL; FALSE otherwise.
Remarks — hardcoded fields, verified. F.FilePath is always NULL, F.FontIndex is always 0, F.Flags is always 0, F.IsSubset is always FALSE, and F.IsVertical is always FALSE — the PFntPub snapshot this call reads from doesn't carry that data (contrast with pdfGetFontInfoEx, which derives real values for the equivalent fields from the full font entry and, for TrueType, the actual font program's tables). Use pdfGetFontInfoEx instead of this call when you need those fields populated.
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Font Services
fntGetFontInfo
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.