GetFontID

Text, Fonts

Description

Returns the ID of the specified font. Before this function is used a call to FindFonts or FontCount

must be made in order to generate a list of fonts available for use in the selected document.

Syntax

Delphi

function TPDFlib.GetFontID(Index: Integer): Integer;

ActiveX

Function PDFlib::GetFontID(Index As Long) As Long

DLL

int DLGetFontID(int InstanceID, int Index);

Parameters

IndexThe index of the font. The first font has an index of 1.

Return values

0The index is out of bounds
Non-zeroThe ID of the specified font