Table of Contents

Class Standard14

Namespace
UglyToad.PdfPig.Fonts.Standard14Fonts
Assembly
UglyToad.PdfPig.Fonts.dll

There are 14 special Type 1 fonts which must be available. The list of PostScript names for these is given in the remarks section. A font dictionary for a standard 14 font may omit the FirstChar, LastChar, Widths and FontDescriptor entries. The metrics for these fonts are provided by the Adobe Font Metrics (AFM) files.

public static class Standard14
Inheritance
Standard14
Inherited Members

Remarks

Standard 14 fonts are deprecated as of PDF 1.5+ however support is still required for backwards compatibility.
The standard 14 are:
Times−Roman
Helvetica
Courier
Symbol
Times−Bold
Helvetica−Bold
Courier−Bold
ZapfDingbats
Times−Italic
Helvetica−Oblique
Courier−Oblique
Times−BoldItalic
Helvetica−BoldOblique
Courier−BoldOblique

Methods

GetAdobeFontMetrics(string)

Get the Adobe Font Metrics as AdobeFontMetrics for a font. If the font is not found this returns null.

public static AdobeFontMetrics GetAdobeFontMetrics(string baseName)

Parameters

baseName string

Returns

AdobeFontMetrics

GetAdobeFontMetrics(Standard14Font)

Get the Adobe Font Metrics as AdobeFontMetrics for a Standard14 font.

public static AdobeFontMetrics GetAdobeFontMetrics(Standard14Font fontType)

Parameters

fontType Standard14Font

Returns

AdobeFontMetrics

GetMappedFontName(string)

Get the official Standard 14 name of the actual font which the given font name maps to.

public static string GetMappedFontName(string baseName)

Parameters

baseName string

Returns

string

GetNames()

Returns the set of Standard 14 font names, including additional names.

public static HashSet<string> GetNames()

Returns

HashSet<string>

IsFontInStandard14(string)

Determines if a font with this name is a standard 14 font.

public static bool IsFontInStandard14(string baseName)

Parameters

baseName string

Returns

bool