API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
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: numberHorizontal advance in pixels (how far to move the cursor).
ascent: numberDistance from the quad top to the glyph ascent line in pixels.
height: numberQuad render height in pixels.
page: numberWhich AtlasPage within the atlas holds this glyph.
uvBottom: numberUV bottom edge (0..1).
uvLeft: numberUV left edge (0..1).
uvRight: numberUV right edge (0..1).
uvTop: numberUV top edge (0..1).
width: numberQuad render width in pixels (full SDF tile in sdf mode; glyph only in canvas mode).
x: numberAtlas X position (pixels, top-left of slot).
xBearing?: numberX offset applied to the quad relative to the cursor position. Non-zero in SDF mode to account for the left SDF padding.
y: numberAtlas Y position (pixels, top-left of slot).
yBearing?: numberY offset applied to the quad relative to the line top. Non-zero in SDF mode to account for the top SDF padding.
Source