SelectFont

Text, Fonts

Description

Select one of the fonts which have been added to the selected document. The FontID must be a valid ID as returned by one of the Add*Font functions or returned by GetFontID .

Syntax

Delphi

function TPDFlib.SelectFont(FontID: Integer): Integer;

ActiveX

Function PDFlib::SelectFont(FontID As Long) As Long

DLL

int DLSelectFont(int InstanceID, int FontID);

Parameters

FontIDThe ID of the font to select

Return values

0The specified ID could not be found
1The font was selected successfully