| Category | HTML text engine fonts |
|---|
Purpose — Set the font used for <b>/<strong> runs in HTML text.
Declarations
C
int32_t __stdcall pdfSetHTMLBoldFont(PPDF IPDF, const char* Name);
int32_t __stdcall pdfSetHTMLBoldFontA(PPDF IPDF, const char* Name);
int32_t __stdcall pdfSetHTMLBoldFontW(PPDF IPDF, const wchar_t* Name);
Delphi
function pdfSetHTMLBoldFontA(const IPDF: PPDF; Name: PAnsiChar): Integer; stdcall; external 'LumasPdf.dll';
function pdfSetHTMLBoldFontW(const IPDF: PPDF; Name: PWideChar): Integer; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
Name | string | Font name for bold HTML runs. |
Return value — 1 on a valid handle.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern int pdfSetHTMLBoldFontW(IntPtr IPDF, IntPtr Name);
public static extern int pdfSetHTMLBoldFont(IntPtr IPDF, IntPtr Name);
public static extern int pdfSetHTMLBoldFontA(IntPtr IPDF, IntPtr Name);
Area
Fonts
Category
Setters
Exported names
pdfSetHTMLBoldFontW
pdfSetHTMLBoldFont
pdfSetHTMLBoldFontA
String variants
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
See working code
Worked examples — complete programs in ten languages.