API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceTextFontMetrics

@codexo/exojs / rendering / stable

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.

3
props
0
methods
0
events
Import
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.

Properties3
ascent: number
descent: number
xHeight: number
Source