| Category | Font state |
|---|
Purpose — Get the handle of the currently active font.
Declarations
C
int32_t __stdcall pdfGetActiveFont(PPDF IPDF);
Delphi
function pdfGetActiveFont(const IPDF: PPDF): Integer; stdcall; external 'LumasPdf.dll';
Return value — 1-based font handle, or 0 if no font is selected or the handle is invalid.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern int pdfGetActiveFont(IntPtr IPDF);
Area
Fonts
Category
Getters
Exported names
pdfGetActiveFont
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.