Class MathTable
A face's OpenType MATH table (OpenType 1.9): the constants a math layout reads, the
per-glyph italics corrections, top-accent attachments and extended-shape flags, and the
larger variants and assemblies a stretchy glyph (a delimiter, a radical, an n-ary
operator, a wide accent) grows by.
public sealed class MathTable
- Inheritance
-
MathTable
- Inherited Members
Remarks
The constants are read once, when the table is first asked for; the per-glyph data is read from the font's own bytes on each lookup, bounds-checked, so a malformed subtable answers "none" for that glyph and never throws. Values are in the face's font units.
Properties
- Constants
Gets the table's global constants.
- MinConnectorOverlap
Gets the smallest overlap between two parts of a glyph assembly, in font units.
Methods
- GetAssembly(ushort, bool)
Gets the parts a glyph is assembled from when no variant is large enough, or null when the table has no assembly for it.
- GetItalicsCorrection(ushort)
Gets a glyph's italics correction (how far its top leans past its advance), or 0 when the table has none for it.
- GetTopAccentAttachment(ushort)
Gets where an accent over a glyph is centred, measured from the glyph's origin, or null when the table has no attachment for it (the accent then centres on the glyph's advance).
- GetVariants(ushort, bool)
Gets the size variants of a glyph in one direction, smallest first; the glyph itself is usually the first. Empty when the table has none.
- IsExtendedShape(ushort)
Gets whether a glyph is an extended shape (a tall glyph such as a grown delimiter), whose scripts are placed from its own box rather than from the base font's constants.