API referenceFonts

fntBuildFamilyNameAndStyle

Read a PFNT snapshot's family name and style bits.

CategoryFont-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

ParameterTypeDescription
IFontPFNTSnapshot handle from pdfEnumDocFonts/similar.
NamePAnsiCharBuffer for the family name; truncated to 127 characters plus NUL. NULL skips writing the name (only Style is filled).
StyleInteger*Receives the snapshot's style bits.

Return valueTRUE 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.