| Category | Font-object introspection |
|---|
Purpose — Read a PFNT snapshot's family name and style bits.
Declarations
C
BOOL32 __stdcall fntBuildFamilyNameAndStyle(PFNT IFont, const char* Name, int32_t* Style);
Delphi
function fntBuildFamilyNameAndStyle(const IFont: PFNT; Name: PAnsiChar; var Style: Integer): LongBool; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IFont | PFNT | Snapshot handle from pdfEnumDocFonts/similar. |
Name | PAnsiChar | Buffer for the family name; truncated to 127 characters plus NUL. NULL skips writing the name (only Style is filled). |
Style | Integer* | Receives the snapshot's style bits. |
Return value — TRUE if IFont is non-NULL; FALSE otherwise.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Fonts
Category
Font Services
Exported names
fntBuildFamilyNameAndStyle
String variants
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
See working code
Worked examples — complete programs in ten languages.