Click or drag to resize

PdfiumFPDF_GetStockFont(IntPtr, String) Method

Creates a standard type font with the specified typeface name and the predefined WinAnsiEncoding encoding.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static IntPtr FPDF_GetStockFont(
	IntPtr document,
	string fontName
)

Parameters

document  IntPtr
Handle to document. Returned by FPDF_LoadDocument(String, String) and FPDF_CreateNewDocument.
fontName  String
A string that specifies the typeface name of the font.

Return Value

IntPtr
Handle to newly created font or IntPtr.Zero if any error occurs.
Remarks
See detailed information about standard fonts in FontStockNames.

Possible values of fontName are: "Arial", "Arial,Bold", "Arial,BoldItalic", "Arial,Italic", "Arial-Bold", "Arial-BoldItalic", "Arial-BoldItalicMT", "Arial-BoldMT", "Arial-Italic", "Arial-ItalicMT", "ArialBold", "ArialBoldItalic", "ArialItalic", "ArialMT", "ArialMT,Bold", "ArialMT,BoldItalic", "ArialMT,Italic", "ArialRoundedMTBold", "Courier", "Courier,Bold", "Courier,BoldItalic", "Courier,Italic", "Courier-Bold", "Courier-BoldOblique", "Courier-Oblique", "CourierBold", "CourierBoldItalic", "CourierItalic", "CourierNew", "CourierNew,Bold", "CourierNew,BoldItalic", "CourierNew,Italic", "CourierNew-Bold", "CourierNew-BoldItalic", "CourierNew-Italic", "CourierNewBold", "CourierNewBoldItalic", "CourierNewItalic", "CourierNewPS-BoldItalicMT", "CourierNewPS-BoldMT", "CourierNewPS-ItalicMT", "CourierNewPSMT", "CourierStd", "CourierStd-Bold", "CourierStd-BoldOblique", "CourierStd-Oblique", "Helvetica", "Helvetica,Bold", "Helvetica,BoldItalic", "Helvetica,Italic", "Helvetica-Bold", "Helvetica-BoldItalic", "Helvetica-BoldOblique", "Helvetica-Italic", "Helvetica-Oblique", "HelveticaBold", "HelveticaBoldItalic", "HelveticaItalic", "Symbol", "SymbolMT", "Times-Bold", "Times-BoldItalic", "Times-Italic", "Times-Roman", "TimesBold", "TimesBoldItalic", "TimesItalic", "TimesNewRoman", "TimesNewRoman,Bold", "TimesNewRoman,BoldItalic", "TimesNewRoman,Italic", "TimesNewRoman-Bold", "TimesNewRoman-BoldItalic", "TimesNewRoman-Italic", "TimesNewRomanBold", "TimesNewRomanBoldItalic", "TimesNewRomanItalic", "TimesNewRomanPS", "TimesNewRomanPS-Bold", "TimesNewRomanPS-BoldItalic", "TimesNewRomanPS-BoldItalicMT", "TimesNewRomanPS-BoldMT", "TimesNewRomanPS-Italic", "TimesNewRomanPS-ItalicMT", "TimesNewRomanPSMT", "TimesNewRomanPSMT,Bold", "TimesNewRomanPSMT,BoldItalic", "TimesNewRomanPSMT,Italic", "ZapfDingbats".

See Also