Namespace: PdfSharp.Fonts.StandardFonts
Provides the data for the 14 Standard-Fonts defined in the PDF-specification.
Pdf spec. 1.7, Chapter 9.6.2.2: Standard Type 1 Fonts (Standard 14 Fonts)
Mainly intended for existing documents which use one or more of the standard-fonts without embedding them.
Used in conjunction with the DocumentFontResolver
public static class StandardFontData
Inheritance Object → StandardFontData
Get the names of the supported standard-fonts
public static IEnumerable<string> FontNames { get; }
Gets the data for the specified font
public static Byte[] GetFontData(string fontName)
fontName
String
Name of the font
Byte[]
Font-data or null if a font with the specified name could not be found
Indicates, whether the specified is one of the 14 Standard-Fonts
public static bool IsStandardFont(string fontName)
fontName
String
Font-name to check
Boolean
true, if is one of the 14 Standard-Fonts, otherwise false