PdfFontDescriptor Class

Definition

The font-wide metrics and attributes of a simple font or CIDFont: a live view over a font descriptor dictionary.

public sealed class PdfFontDescriptor

Remarks

ISO 32000-2 §9.8.1, Table 120, and §9.8.2. Every property reads the dictionary when called, so a change made through Dictionary is visible at once. An absent or malformed entry reads as the default Table 120 gives (0 for the optional numbers), or as null for entries without one; the font that uses the descriptor records a diagnostic for a malformed or missing required entry when it is first used. Dimensions are in glyph space units: thousandths of text space for every font type except Type 3 (§9.2.4).

A non-embedded Standard 14 font may have no font descriptor (§9.6.2.1, the paragraph after Table 109); a processor shall then provide the descriptor data itself. Descriptor returns a synthesized descriptor for such a font, with Dictionary null and values from the font's AFM file: FontBBox, ItalicAngle, CapHeight, XHeight, Ascender (Ascent), Descender (Descent), StdVW (StemV) and StdHW (StemH). Symbol and ZapfDingbats have no CapHeight, XHeight, Ascender or Descender in their AFM files; their font box supplies Ascent, Descent and CapHeight, and XHeight is 0.

Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Properties (28)

Methods (1)