spaceBetween static method
Returns the spacing scaling factor based on left/right atom types and current math style.
Returns the multiplier for fontSize (multiply by fontSizePx to get pixel value).
Implementation
static double spaceBetween(AtomType left, AtomType right, bool isScript) {
final rule = _spacingTable[left.index][right.index];
if (rule == null) return 0.0;
switch (rule) {
case _SpaceRule.none:
return 0.0;
case _SpaceRule.thin:
return _thin;
case _SpaceRule.medium:
return isScript ? 0.0 : _medium;
case _SpaceRule.thick:
return isScript ? 0.0 : _thick;
}
}