SetFormFieldStandardFont

Schriften, Formularfelder

Beschreibung

Setzt ein Formularfeld auf die Verwendung einer Standardschriftart. In Acrobat 4 und früher muss eine Standardschriftart verwendet werden, wenn das Formularfeld einen Rahmen hat oder gedreht ist.

Syntax

Delphi

Function TPDFlib.SetFormFieldStandardFont(Index, StandardFontID: Integer): Integer;

ActiveX

Function PDFlib::SetFormFieldStandardFont(Index As Long, StandardFontID As Long) As Long

DLL

int DLSetFormFieldStandardFont(int InstanceID, int Index, int StandardFontID);

Parameter

IndexDer Index des Formularfelds
StandardFontIDDie ID der hinzuzufügenden Schriftart: 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

Rückgabewerte

Gibt 1 zurück, wenn der Standardfont gesetzt wurde. Gibt 0 zurück, wenn Index kein Formularfeld bezeichnet oder StandardFontID außerhalb des Bereichs 0 bis 13 liegt.