Click or drag to resize

PdfiumFPDF_CreateFont Method

Creates a font with the specified characteristics.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static IntPtr FPDF_CreateFont(
	IntPtr document,
	string faceName,
	bool bTrueType,
	FontFlags flags,
	FontWeight weight,
	int italicAngel,
	FontCharSet charSet,
	bool bVert
)

Parameters

document  IntPtr
Handle to document. Returned by FPDF_LoadDocument(String, String) and FPDF_CreateNewDocument.
faceName  String
A string that specifies the typeface name of the font. The length of this string must not exceed 32 TCHAR values, including the terminating NULL. If lfFaceName is an empty string, GDI uses the first font that matches the other specified attributes.
bTrueType  Boolean
The true type font.
flags  FontFlags
The value of the FontFlags entry.
weight  FontWeight
The weight of the font.
italicAngel  Int32
The angle, expressed in degrees counterclockwise from the vertical, of the dominant vertical strokes of the font. (For example, the 9-o’clock position is 90 degrees, and the 3-o’clock position is –90 degrees.) The value is negative for fonts that slope to the right, as almost all italic fonts do.
charSet  FontCharSet
The character set.
bVert  Boolean
The font is vertical.

Return Value

IntPtr
Handle to newly created font or IntPtr.Zero if any error occurs.
See Also