SetFontEncoding

Fonts

Description

Sets the encoding for the selected font.

Syntax

Delphi

function TPDFlib.SetFontEncoding(Encoding: Integer): Integer;

ActiveX

Function PDFlib::SetFontEncoding(Encoding As Long) As Long

DLL

int DLSetFontEncoding(int InstanceID, int Encoding);

Parameters

EncodingThe encoding to use for the font: 0 = StandardEncoding 1 = MacRomanEncoding 2 = WinAnsiEncoding 3 = Deprecated (was PDFDocEncoding) 4 = MacExpertEncoding 5 = Do not specify encoding

Return values

0No font was selected, or the encoding could not be set
1The encoding for the selected font was set successfully