This class represents the font descriptor. This is definitively detailed in:.

The ISO PDF Specification, ISO 32000-1:2008 PDF 1.7; Table: 122, page 281.

The ISO PDF Specification, ISO 32000-2:2017 PDF 2.0; Table: 120, page 341.

The ISO PDF Specification, ISO 32000-1:2008 PDF 1.7; Table: 124, page 285.

The ISO PDF Specification, ISO 32000-2:2017 PDF 2.0; Table: 122, page 345.

This class is always an indirect object because CIDFontElement.EntryFontDescriptor, TrueTypeFontElement.EntryFontDescriptor, Type1FontElement.EntryFontDescriptor and Type3FontElement.EntryFontDescriptor require it to be so.

System.Object
    WebSupergoo.ABCpdf14.Elements.Element
       WebSupergoo.ABCpdf14.Elements.FontDescriptorElement

A font descriptor carries the metric and structural properties of a font as a whole. It complements the per-glyph width data in the font dictionary with font-level measurements that viewers use for layout, substitution, and text extraction.

FontName must match the BaseFont entry in the font dictionary it belongs to. For subset fonts the name carries a six-letter uppercase tag prefix separated by a plus sign, such as ABCDEF+FontName.

Flags is a 32-bit integer where each bit signals a typographic property of the font. Key bits include FixedPitch (bit 1), Serif (bit 2), Symbolic (bit 3), Script (bit 4), Nonsymbolic (bit 6), Italic (bit 7), AllCap (bit 17), SmallCap (bit 18), and ForceBold (bit 19).

The metric entries, Ascent, Descent, CapHeight, and XHeight, are all measured in the same glyph coordinate space as FontBBox. They give the viewer the data it needs to size and position text, and to simulate bold or italic when the actual variant is unavailable.

StemV and StemH give the typical stroke widths of vertical and horizontal stems. Viewers use these values to choose appropriate font substitutes when the original font is not available and for hinting decisions on low-resolution devices.

The font file entries, FontFile, FontFile2, and FontFile3, each point to an embedded font program stream. FontFile is for Type 1 programs, FontFile2 for TrueType, and FontFile3 for OpenType and other Subtype-labelled formats. Only one of these should be present.

CharSet lists the glyph names present in a Type 1 font subset. It is a PDF string in the format of a PostScript array of name tokens. Viewers may use it to determine which glyphs are available without parsing the font program.

 

   
   
Method
Description
FontDescriptorElement Create a new FontDescriptorElement.
inherited methods...

 

   
   
Property
Description
EntryType Represents the "Type" entry of the font descriptor object.
EntryFontName Represents the "FontName" entry of the font descriptor object.
EntryFontFamily Represents the "FontFamily" entry of the font descriptor object.
EntryFontStretch Represents the "FontStretch" entry of the font descriptor object.
EntryFontWeight Represents the "FontWeight" entry of the font descriptor object.
EntryFlags Represents the "Flags" entry of the font descriptor object.
EntryFontBBox Represents the "FontBBox" entry of the font descriptor object.
EntryItalicAngle Represents the "ItalicAngle" entry of the font descriptor object.
EntryAscent Represents the "Ascent" entry of the font descriptor object.
EntryDescent Represents the "Descent" entry of the font descriptor object.
EntryLeading Represents the "Leading" entry of the font descriptor object.
EntryCapHeight Represents the "CapHeight" entry of the font descriptor object.
EntryXHeight Represents the "XHeight" entry of the font descriptor object.
EntryStemV Represents the "StemV" entry of the font descriptor object.
EntryStemH Represents the "StemH" entry of the font descriptor object.
EntryAvgWidth Represents the "AvgWidth" entry of the font descriptor object.
EntryMaxWidth Represents the "MaxWidth" entry of the font descriptor object.
EntryMissingWidth Represents the "MissingWidth" entry of the font descriptor object.
EntryFontFile Represents the "FontFile" entry of the font descriptor object.
EntryFontFile2 Represents the "FontFile2" entry of the font descriptor object.
EntryFontFile3 Represents the "FontFile3" entry of the font descriptor object.
EntryCharSet Represents the "CharSet" entry of the font descriptor object.
EntryStyle Represents the "Style" entry of the font descriptor object.
EntryLang Represents the "Lang" entry of the font descriptor object.
EntryFD Represents the "FD" entry of the font descriptor object.
EntryCIDSet Represents the "CIDSet" entry of the font descriptor object.
inherited properties...