MathFont constructor

MathFont(
  1. OpenTypeFont font
)

Wraps a parsed font. Throws if it has no MATH table.

Implementation

MathFont(this.font) : _math = font.math ?? _noMath(font), _default = null {
  _em = font.unitsPerEm.toDouble();
}