![]() | PdfiumFPDF_ |
public static IntPtr FPDF_AddStandardFont( IntPtr document, string fontName, int encoding )
Possible values of encoding are:
Name | Value | Description |
---|---|---|
WinAnsiEncoding | 1 | Windows Code Page 1252, often called the “Windows ANSI” encoding.This is the standard Windows encoding for Latin text in Western writing systems.PDF has a predefined encoding named WinAnsiEncoding that can be used with both Type 1 and TrueType fonts. |
MacRomanEncoding | 2 | Mac OS standard encoding for Latin text in Western writing systems. PDF has a predefined encoding named MacRomanEncoding that can be used with both Type 1 and TrueType fonts. |
MacExpertEncoding | 3 | An encoding for use with expert fonts—ones containing the expert character set.PDF has a predefined encoding named MacExpertEncoding.Despite its name, it is not a platform-specific encoding; however, only certain fonts have the appropriate character set for use with this encoding.No such fonts are among the standard 14 predefined fonts. |
StandardEncoding | 4 | Adobe standard Latin-text encoding. This is the built-in encoding defined in Type 1 Latin-text font programs(but generally not in TrueType font programs). PDF does not have a predefined encoding named StandardEncoding.However, it is useful to describe this encoding, since a font’s built-in encoding can be used as the base encoding from which differences are specified in an encoding dictionary. |
AdobeSymbolEncoding | 5 | |
ZapDingBatsEncoding | 6 | |
PDFDocEncoding | 7 | Encoding for text strings in a PDF document outside the document’s content streams. This is one of two encodings (the other being Unicode) that can be used to represent text strings; see Section, “Text String Type.” PDF does not have a predefined encoding named PDFDocEncoding; it is not customary to use this encoding to show text from fonts. |
MSSymbolEncoding | 8 |
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".