MathKernInfo
in package
Read onlyYes
FinalYes
Parsed MathKernInfo sub-table from an OpenType MATH table.
Spec: https://learn.microsoft.com/en-us/typography/opentype/spec/math#mathkerninfo-table
Holds per-glyph corner kerning the painter uses to nudge sub/superscripts around italic-shaped bases. Each base glyph can supply up to four corner-specific kern tables:
- topRight used when a superscript follows the base
- topLeft used when a presuperscript precedes the base
- bottomRight used when a subscript follows the base
- bottomLeft used when a presubscript precedes the base
Each corner table is a piecewise function: at increasing "correction heights" (Y offsets from baseline), the painter looks up the corresponding horizontal kern value to add.
Keyed by base glyph ID. Glyphs absent from the map carry no corner kerning - the painter applies the default zero.
Table of Contents
Properties
- $records : array<string|int, mixed>
Methods
- __construct() : mixed
Properties
$records
public
array<string|int, mixed>
$records
Methods
__construct()
public
__construct(array<int, MathKernRecord> $records) : mixed
Parameters
- $records : array<int, MathKernRecord>
-
Base GID → corner kern table.