API reference

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

I

interfaceGlyphInfo

@codexo/exojs / rendering / stable

Cached glyph data stored in an atlas page after rasterization.

13
props
0
methods
0
events
Import
import { GlyphInfo } from '@codexo/exojs'

Cached glyph data stored in an atlas page after rasterization.

Properties13
advance: number
Horizontal advance in pixels (how far to move the cursor).
ascent: number
Distance from the quad top to the glyph ascent line in pixels.
height: number
Quad render height in pixels.
page: number
Which AtlasPage within the atlas holds this glyph.
uvBottom: number
UV bottom edge (0..1).
uvLeft: number
UV left edge (0..1).
uvRight: number
UV right edge (0..1).
uvTop: number
UV top edge (0..1).
width: number
Quad render width in pixels (full SDF tile in sdf mode; glyph only in canvas mode).
x: number
Atlas X position (pixels, top-left of slot).
xBearing?: number
X offset applied to the quad relative to the cursor position. Non-zero in SDF mode to account for the left SDF padding.
y: number
Atlas Y position (pixels, top-left of slot).
yBearing?: number
Y offset applied to the quad relative to the line top. Non-zero in SDF mode to account for the top SDF padding.
Source