FontName

Fonts

Description

Returns the name of the selected font. A font is automatically selected when it is added to the document. The GetFontID and SelectFont functions can be used to select a different font

Syntax

Delphi

Function TPDFlib.FontName: WideString;

ActiveX

Function PDFlib::FontName() As String

DLL

const wchar_t* DLFontName(int InstanceID);
const char* DLFontNameA(int InstanceID);

Return values

Returns the name of the currently selected font, or an empty string when no font is selected