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 LongDLL
int DLGetFontID(int InstanceID, int Index);Parameters
| Index | The index of the font. The first font has an index of 1. |
|---|
Return values
| 0 | The index is out of bounds |
|---|---|
| Non-zero | The ID of the specified font |