PdfStandardFont class
Namespace: PdfNetStack.Fonts
Assembly: PdfNetStack.dll
Package: PdfNetStack
One of the 14 standard PDF fonts (ISO 32000-1, 9.6.2.2). Viewers supply them, so nothing is embedded and files stay small. They cover Western and Central European Latin text, plus the Symbol and ZapfDingbats sets; for anything else, or for PDF/A, embed a font.
public sealed class PdfStandardFont : PdfFontInheritance
object ← PdfFont ← PdfStandardFont
Remarks
Section titled “Remarks”Latin text uses WinAnsiEncoding (Windows-1252). Up to 37 other characters the font has, such as Ł, ő or −, get codes of their own per document. Standard fonts are not kerned. Line spacing follows the metric compatible fonts viewers substitute (Liberation Sans, Serif and Mono), which matches how browsers lay out the same families.
Properties
Section titled “Properties”All 14 fonts.
public static IReadOnlyList<PdfStandardFont> All { get; }Property Value
Section titled “Property Value”IReadOnlyList<PdfStandardFont>
Courier
Section titled “ Courier”Courier, a monospace. Viewers usually show Courier New or Liberation Mono.
public static PdfStandardFont Courier { get; }Property Value
Section titled “Property Value”CourierBold
Section titled “ CourierBold”Courier Bold.
public static PdfStandardFont CourierBold { get; }Property Value
Section titled “Property Value”CourierBoldOblique
Section titled “ CourierBoldOblique”Courier Bold Oblique.
public static PdfStandardFont CourierBoldOblique { get; }Property Value
Section titled “Property Value”CourierOblique
Section titled “ CourierOblique”Courier Oblique.
public static PdfStandardFont CourierOblique { get; }Property Value
Section titled “Property Value”FamilyName
Section titled “ FamilyName”Family name, such as “Helvetica”.
public override string FamilyName { get; }Property Value
Section titled “Property Value”Helvetica
Section titled “ Helvetica”Helvetica, a sans serif. Viewers usually show Arial or Liberation Sans.
public static PdfStandardFont Helvetica { get; }Property Value
Section titled “Property Value”HelveticaBold
Section titled “ HelveticaBold”Helvetica Bold.
public static PdfStandardFont HelveticaBold { get; }Property Value
Section titled “Property Value”HelveticaBoldOblique
Section titled “ HelveticaBoldOblique”Helvetica Bold Oblique.
public static PdfStandardFont HelveticaBoldOblique { get; }Property Value
Section titled “Property Value”HelveticaOblique
Section titled “ HelveticaOblique”Helvetica Oblique.
public static PdfStandardFont HelveticaOblique { get; }Property Value
Section titled “Property Value”IsBold
Section titled “ IsBold”True for bold and heavier weights.
public override bool IsBold { get; }Property Value
Section titled “Property Value”IsFixedPitch
Section titled “ IsFixedPitch”True for Courier, whose glyphs all have the same width.
public bool IsFixedPitch { get; }Property Value
Section titled “Property Value”IsItalic
Section titled “ IsItalic”True for italic and oblique styles.
public override bool IsItalic { get; }Property Value
Section titled “Property Value”PostScript name, as written to /BaseFont.
public override string Name { get; }Property Value
Section titled “Property Value”Symbol
Section titled “ Symbol”Symbol: Greek letters and mathematical signs, drawn from their Unicode characters.
public static PdfStandardFont Symbol { get; }Property Value
Section titled “Property Value”TimesBold
Section titled “ TimesBold”Times Bold.
public static PdfStandardFont TimesBold { get; }Property Value
Section titled “Property Value”TimesBoldItalic
Section titled “ TimesBoldItalic”Times Bold Italic.
public static PdfStandardFont TimesBoldItalic { get; }Property Value
Section titled “Property Value”TimesItalic
Section titled “ TimesItalic”Times Italic.
public static PdfStandardFont TimesItalic { get; }Property Value
Section titled “Property Value”TimesRoman
Section titled “ TimesRoman”Times Roman, a serif. Viewers usually show Times New Roman or Liberation Serif.
public static PdfStandardFont TimesRoman { get; }Property Value
Section titled “Property Value”ZapfDingbats
Section titled “ ZapfDingbats”ZapfDingbats: the Unicode Dingbats block (✓, ✗, ❤, ➔ and more), drawn from their Unicode characters.
public static PdfStandardFont ZapfDingbats { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”FromName(string)
Section titled “ FromName(string)”The standard font with this PostScript name, such as “Helvetica-Bold”, or null.
public static PdfStandardFont? FromName(string name)Parameters
Section titled “Parameters”name string
Returns
Section titled “Returns”Used in
Section titled “Used in”- PDF coordinates and units in PdfNetStack
- Get started with PdfNetStack
- PDF links and annotations in C# and .NET
- Draw on PDF pages in C# and .NET
- Extract text from PDF files in C#
- Fonts and text in PDF with C# and .NET
- Fill and create PDF forms in C# and .NET
- CSS support in PdfNetStack.Html
- Add images to PDF in C# and .NET
- Add page numbers to a PDF in C#
- Add a watermark to a PDF in C#