SetHTMLBoldItalicFontA
文本、HTML 文本
描述
末尾的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅提供 Unicode 形式;其行为与 SetHTMLBoldItalicFont 相同,字符串参数按当前 SetAnsiMode 代码页解释
使用 DrawHTMLText 或 DrawHTMLTextBox 时,同时遇到 <b> 或 <strong> 以及 <em> 或 <i> 标记时指定要使用的字体
语法
Delphi
Function DLSetHTMLBoldItalicFontA(InstanceID: Integer; FontSet: PAnsiChar; FontID: Integer): Integer;
DLL
int DLSetHTMLBoldItalicFontA(int InstanceID, const char * FontSet, int FontID);
参数
| FontSet | 要使用的字体集名称。对于此版本的库,它应始终为 "Default" |
|---|---|
| FontID | 要使用的字体 ID |
返回值
| 0 | 指定的 FontID 不是有效字体 |
|---|---|
| 1 | 已成功设置字体 |