PDFsharp-net6

StandardFontData

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 ObjectStandardFontData

Properties

FontNames

Get the names of the supported standard-fonts

public static IEnumerable<string> FontNames { get; }

Property Value

IEnumerable<String>

Methods

GetFontData(String)

Gets the data for the specified font

public static Byte[] GetFontData(string fontName)

Parameters

fontName String
Name of the font

Returns

Byte[]
Font-data or null if a font with the specified name could not be found

IsStandardFont(String)

Indicates, whether the specified is one of the 14 Standard-Fonts

public static bool IsStandardFont(string fontName)

Parameters

fontName String
Font-name to check

Returns

Boolean
true, if is one of the 14 Standard-Fonts, otherwise false