SetHTMLItalicFontA

Text, HTML text

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SetHTMLItalicFont and string arguments are interpreted using the current SetAnsiMode code page

Specifies the font to use when an <em> or <i> tag is encountered when using DrawHTMLText or

DrawHTMLTextBox.

Syntax

Delphi

Function DLSetHTMLItalicFontA(InstanceID: Integer; FontSet: PAnsiChar; FontID: Integer): Integer;

DLL

int DLSetHTMLItalicFontA(int InstanceID, const char* FontSet, int FontID);

Parameters

FontSet"Default" (or an empty string) sets the face HTML text starts with. Any other name registers the font under that font family, which a CSS font-family declaration can then select; registering a family leaves the default faces unchanged
FontIDThe ID of the font to use

Return values

0The specified FontID is not a valid font
1The font was set successfully