PdfSimpleFont Class

Definition

A simple font: one byte per character code, a 256-entry encoding from codes to glyph names, and one width per code.

public abstract class PdfSimpleFont : PdfFont

Remarks

ISO 32000-2 §9.6.1. GetGlyphName(Byte) applies the font's encoding (§9.6.5): the Encoding entry, a predefined encoding or an encoding dictionary with BaseEncoding and Differences, over the font's built-in encoding. GetWidth(Byte) applies FirstChar, LastChar, Widths and the descriptor's MissingWidth (§9.6.2.1, Table 109), and the Standard 14 metrics for a non-embedded Standard 14 font that does not give them (§9.6.2.2).

The 256 names and widths are computed on first use and kept until the font dictionary, its Widths array, its encoding dictionary, the Differences array or its font descriptor changes; looking one up then allocates nothing. Deviations found while computing them are recorded once, on the font's object, when first used: in strict mode that call throws.

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

Properties (2)

Methods (2)