Mathematical typesetting axis 2026-11-05
The mathematical typesetting axis, or Math axis, is a horizontal alignment reference for a formula. Its offset from the text baseline is a mathematical font constant, represented by
axisHeight in an OpenType MATH table.[ref]MATH - The Mathematical Typesetting Table by Microsoft. MathConstants: axisHeight and baseline offset
For an invented coordinate example, choose upward-positive coordinates, put the text baseline at , and set the axis offset to font units in a computer font with 1000 font units per em. At 20 pixels per em, the axis is pixels above that baseline. A symmetric enclosing shape spanning to has midpoint , so its centre lies on the axis.
The typeset fraction bar is another useful alignment cue. The reference fixes relative placement; translating the whole formula also translates its baseline and axis.
Mathematical typesetting style 2026-11-05
A mathematical typesetting style selects layout conventions appropriate to a formula's context, including compact inline material and more spacious displayed material. In MathML,
math-style distinguishes normal and compact, while math-depth participates in nested size selection.[ref]Compare two presentations of the same expression:Both represent the same quotient, but reserve different vertical space. In TeX,
\displaystyle and \textstyle request these contexts. The choice matters when fitting a typeset fraction into a line without making neighbouring text baselines unnecessarily far apart.For a hypothetical computer font with first- and second-level script scales 80 and 60 percent, a base font size of 20 units gives script sizes 16 and 12. The second value is relative to the base, so it is not . Actual percentages come from the computer font's mathematical font constants.[ref]
MathML Core by World Wide Web Consortium. §4.5: ScriptPercentScaleDown and ScriptScriptPercentScaleDown
OpenType MATH table 2026-11-05
An OpenType MATH table stores font-specific information for mathematical typesetting. Its major components supply mathematical font constants, per-glyph placement information, and data for mathematical glyph variants or mathematical glyph assemblies.[ref]
MATH - The Mathematical Typesetting Table by Microsoft. MATH header: MathConstants, MathGlyphInfo and MathVariants
For example, a tall typeset fraction can require larger surrounding mathematical delimiters. The font may offer several ready-made parentheses and parts for assembling still taller ones. An implementation can use those data together with the expression's measured dimensions. Merely scaling one outline uniformly could change its stroke weight along with its height; the supplied variants and parts give the font designer more control over the result.
The same general division of labour applies to subscripts and superscripts: a font supplies relevant dimensions and placement information, while the layout process combines them with the actual expression. The table is a data interface used by layout algorithms. It does not uniquely prescribe the complete appearance of every formula.[ref]
MATH - The Mathematical Typesetting Table by Microsoft. Overview; MathVariants and GlyphAssembly