SetHTMLBoldItalicFont
文本、HTML 文本
描述
使用 DrawHTMLText 或 DrawHTMLTextBox 时,同时遇到 <b> 或 <strong> 以及 <em> 或 <i> 标记时指定要使用的字体
语法
Delphi
Function TPDFlib.SetHTMLBoldItalicFont(Const FontSet: WideString; FontID: Integer): Integer;
ActiveX
Function PDFlib::SetHTMLBoldItalicFont(FontSet As String, FontID As Long) As Long
DLL
int DLSetHTMLBoldItalicFont(int InstanceID, const wchar_t* FontSet, int FontID);
int DLSetHTMLBoldItalicFontA(int InstanceID, const char* FontSet, int FontID);
参数
| FontSet | "Default"(或空字符串)设置 HTML 文本起始使用的字面。任何其他名字都会把该字体注册到那个字族之下,之后 CSS 的 font-family 声明即可选中它;注册字族不会改变默认字面 |
|---|---|
| FontID | 要使用的字体 ID |
返回值
| 0 | 指定的 FontID 不是有效字体 |
|---|---|
| 1 | 已成功设置字体 |