 | PdfiumFPDF_CreateFont Method |
Creates a font with the specified characteristics.
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic static IntPtr FPDF_CreateFont(
IntPtr document,
string faceName,
bool bTrueType,
FontFlags flags,
FontWeight weight,
int italicAngel,
FontCharSet charSet,
bool bVert
)
Public Shared Function FPDF_CreateFont (
document As IntPtr,
faceName As String,
bTrueType As Boolean,
flags As FontFlags,
weight As FontWeight,
italicAngel As Integer,
charSet As FontCharSet,
bVert As Boolean
) As IntPtr
public:
static IntPtr FPDF_CreateFont(
IntPtr document,
String^ faceName,
bool bTrueType,
FontFlags flags,
FontWeight weight,
int italicAngel,
FontCharSet charSet,
bool bVert
)
static member FPDF_CreateFont :
document : IntPtr *
faceName : string *
bTrueType : bool *
flags : FontFlags *
weight : FontWeight *
italicAngel : int *
charSet : FontCharSet *
bVert : bool -> IntPtr
public static IntPtr FPDF_CreateFont(
IntPtr document,
String faceName,
boolean bTrueType,
FontFlags flags,
FontWeight weight,
int italicAngel,
FontCharSet charSet,
boolean bVert
)
Patagames.Pdf.Pdfium.FPDF_CreateFont = function(document, faceName, bTrueType, flags, weight, italicAngel, charSet, 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
IntPtrHandle to newly created font or IntPtr.Zero if any error occurs.
See Also