SetHTMLBoldFont
Text, HTML text
Description
Specifies the font to use when a <b> or <strong> tag is encountered when using DrawHTMLText
or DrawHTMLTextBox.
Syntax
Delphi
Function TPDFlib.SetHTMLBoldFont(Const FontSet: WideString; FontID: Integer): Integer;
ActiveX
Function PDFlib::SetHTMLBoldFont(FontSet As String, FontID As Long) As Long
DLL
int DLSetHTMLBoldFont(int InstanceID, const wchar_t* FontSet, int FontID);
int DLSetHTMLBoldFontA(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 |
|---|---|
| FontID | The ID of the font to use |
Return values
| 0 | The specified FontID is not a valid font |
|---|---|
| 1 | The font was set successfully |