Table of Contents

Class PdfFontDescriptor.Keys

Namespace
PdfSharp.Pdf.Advanced
Assembly
PdfSharp.dll

Predefined keys of this dictionary.

public sealed class PdfFontDescriptor.Keys : KeysBase
Inheritance
PdfFontDescriptor.Keys
Inherited Members

Constructors

Keys()

public Keys()

Fields

Ascent

(Required, except for Type 3 fonts) The maximum height above the baseline reached by glyphs in this font, excluding the height of glyphs for accented characters.

public const string Ascent = "/Ascent"

Field Value

string

AvgWidth

(Optional) The average width of glyphs in the font. Default value: 0.

public const string AvgWidth = "/AvgWidth"

Field Value

string

CapHeight

(Required for fonts that have Latin characters, except for Type 3 fonts) The vertical coordinate of the top of flat capital letters, measured from the baseline.

public const string CapHeight = "/CapHeight"

Field Value

string

CharSet

(Optional; meaningful only in Type 1 fonts; PDF 1.1) A string listing the character names defined in a font subset. The names in this string must be in PDF syntax—that is, each name preceded by a slash (/). The names can appear in any order. The name .notdef should be omitted; it is assumed to exist in the font subset. If this entry is absent, the only indication of a font subset is the subset tag in the FontName entry.

public const string CharSet = "/CharSet"

Field Value

string

Descent

(Required, except for Type 3 fonts) The maximum depth below the baseline reached by glyphs in this font. The value is a negative number.

public const string Descent = "/Descent"

Field Value

string

Flags

(Required) A collection of flags defining various characteristics of the font.

public const string Flags = "/Flags"

Field Value

string

FontBBox

(Required, except for Type 3 fonts) A rectangle (see Section 3.8.4, “Rectangles”), expressed in the glyph coordinate system, specifying the font bounding box. This is the smallest rectangle enclosing the shape that would result if all of the glyphs of the font were placed with their origins coincident and then filled.

public const string FontBBox = "/FontBBox"

Field Value

string

FontFamily

(Optional; PDF 1.5; strongly recommended for Type 3 fonts in Tagged PDF documents) A string specifying the preferred font family name. For example, for the font Times Bold Italic, the FontFamily is Times.

public const string FontFamily = "/FontFamily"

Field Value

string

FontFile

(Optional) A stream containing a Type 1 font program.

public const string FontFile = "/FontFile"

Field Value

string

FontFile2

(Optional; PDF 1.1) A stream containing a TrueType font program.

public const string FontFile2 = "/FontFile2"

Field Value

string

FontFile3

(Optional; PDF 1.2) A stream containing a font program whose format is specified by the Subtype entry in the stream dictionary.

public const string FontFile3 = "/FontFile3"

Field Value

string

FontName

(Required) The PostScript name of the font. This name should be the same as the value of BaseFont in the font or CIDFont dictionary that refers to this font descriptor.

public const string FontName = "/FontName"

Field Value

string

FontStretch

(Optional; PDF 1.5; strongly recommended for Type 3 fonts in Tagged PDF documents) The font stretch value. It must be one of the following names (ordered from narrowest to widest): UltraCondensed, ExtraCondensed, Condensed, SemiCondensed, Normal, SemiExpanded, Expanded, ExtraExpanded or UltraExpanded. Note: The specific interpretation of these values varies from font to font. For example, Condensed in one font may appear most similar to Normal in another.

public const string FontStretch = "/FontStretch"

Field Value

string

FontWeight

(Optional; PDF 1.5; strongly recommended for Type 3 fonts in Tagged PDF documents) The weight (thickness) component of the fully-qualified font name or font specifier. The possible values are 100, 200, 300, 400, 500, 600, 700, 800, or 900, where each number indicates a weight that is at least as dark as its predecessor. A value of 400 indicates a normal weight; 700 indicates bold. Note: The specific interpretation of these values varies from font to font. For example, 300 in one font may appear most similar to 500 in another.

public const string FontWeight = "/FontWeight"

Field Value

string

ItalicAngle

(Required) The angle, expressed in degrees counterclockwise from the vertical, of the dominant vertical strokes of the font. (For example, the 9-o’clock position is 90 degrees, and the 3-o’clock position is –90 degrees.) The value is negative for fonts that slope to the right, as almost all italic fonts do.

public const string ItalicAngle = "/ItalicAngle"

Field Value

string

Leading

(Optional) The spacing between baselines of consecutive lines of text. Default value: 0.

public const string Leading = "/Leading"

Field Value

string

MaxWidth

(Optional) The maximum width of glyphs in the font. Default value: 0.

public const string MaxWidth = "/MaxWidth"

Field Value

string

MissingWidth

(Optional) The width to use for character codes whose widths are not specified in a font dictionary’s Widths array. This has a predictable effect only if all such codes map to glyphs whose actual widths are the same as the value of the MissingWidth entry. Default value: 0.

public const string MissingWidth = "/MissingWidth"

Field Value

string

StemH

(Optional) The thickness, measured vertically, of the dominant horizontal stems of glyphs in the font. Default value: 0.

public const string StemH = "/StemH"

Field Value

string

StemV

(Required, except for Type 3 fonts) The thickness, measured horizontally, of the dominant vertical stems of glyphs in the font.

public const string StemV = "/StemV"

Field Value

string

Type

(Required) The type of PDF object that this dictionary describes; must be FontDescriptor for a font descriptor.

public const string Type = "/Type"

Field Value

string

XHeight

(Optional) The font’s x height: the vertical coordinate of the top of flat nonascending lowercase letters (like the letter x), measured from the baseline, in fonts that have Latin characters. Default value: 0.

public const string XHeight = "/XHeight"

Field Value

string