API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceTextFontMetrics
Vertical font metrics in logical pixels at one font size, as a glyph source reports them. Everything is measured from the line's own baseline: `ascent` is how far the baseline sits below the line box's top, `descent` how far the font reaches below it, `xHeight` the height of a lowercase letter above it. Text decorations are placed from these rather than from fractions of the font size, so a rule lands in the same relation to the letters in every typeface.
import { TextFontMetrics } from '@codexo/exojs'Vertical font metrics in logical pixels at one font size, as a glyph source reports them.
Everything is measured from the line's own baseline: `ascent` is how far the baseline sits below the line box's top, `descent` how far the font reaches below it, `xHeight` the height of a lowercase letter above it. Text decorations are placed from these rather than from fractions of the font size, so a rule lands in the same relation to the letters in every typeface.
ascent: numberdescent: numberxHeight: number