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