AddStandardFont

Text, Fonts

Description

Adds a standard font to the document. These standard fonts will always be available on all PDF viewers.

Syntax

Delphi

function TPDFlib.AddStandardFont(StandardFontID: Integer): Integer;

ActiveX

Function PDFlib::AddStandardFont(StandardFontID As Long) As Long

DLL

int DLAddStandardFont(int InstanceID, int StandardFontID);

Parameters

StandardFontIDThe ID of the font to add: 0 = Courier 1 = CourierBold 2 = CourierBoldOblique 3 = CourierOblique 4 = Helvetica 5 = HelveticaBold 6 = HelveticaBoldOblique 7 = HelveticaOblique 8 = TimesRoman 9 = TimesBold 10 = TimesItalic 11 = TimesBoldItalic 12 = Symbol 13 = ZapfDingbats

Return values

0The font could not be added
Non-zeroThe ID of the font that was successfully added