API referenceFonts

pdfSetHTMLItalicFont

Set the font used for <i>/<em> runs in HTML text.

CategoryHTML text engine fonts

Purpose — Set the font used for <i>/<em> runs in HTML text.

Declarations

C
int32_t __stdcall pdfSetHTMLItalicFont(PPDF IPDF, const char* Name);
int32_t __stdcall pdfSetHTMLItalicFontA(PPDF IPDF, const char* Name);
int32_t __stdcall pdfSetHTMLItalicFontW(PPDF IPDF, const wchar_t* Name);
Delphi
function pdfSetHTMLItalicFontA(const IPDF: PPDF; Name: PAnsiChar): Integer; stdcall; external 'LumasPdf.dll';
function pdfSetHTMLItalicFontW(const IPDF: PPDF; Name: PWideChar): Integer; stdcall; external 'LumasPdf.dll';

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle.
NamestringFont name for italic HTML runs.

Return value1 on a valid handle.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern int pdfSetHTMLItalicFontW(IntPtr IPDF, IntPtr Name);
public static extern int pdfSetHTMLItalicFont(IntPtr IPDF, IntPtr Name);
public static extern int pdfSetHTMLItalicFontA(IntPtr IPDF, IntPtr Name);
Area
Fonts
Category

Setters

Exported names

pdfSetHTMLItalicFontW pdfSetHTMLItalicFont pdfSetHTMLItalicFontA

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.