API reference

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

I

interfaceGlyphPlacement

@codexo/exojs / rendering / stable

A single glyph's quad placement in local text space. Origin is the top-left of the first line.

14
props
0
methods
0
events
Import
import { GlyphPlacement } from '@codexo/exojs'

A single glyph's quad placement in local text space. Origin is the top-left of the first line.

Properties14
decoration?: boolean
Whether this quad is a decoration rule rather than a glyph. Rules are appended after every glyph and belong to no line's placement range, so a caret or a hit test never has to skip one.
height: number
page: number
Which AtlasPage within the atlas holds this glyph's texture data.
penAdvance: number
Pen step from this glyph to the next, letterSpacing included.
penX: number
Pen origin of this glyph on its line - the advance box's left edge, with the alignment offset applied and the glyph's bearing excluded. This is the boundary a caret sits on; x is the ink edge and in SDF mode sits left of the pen by the atlas padding.
sourceEnd: number
UTF-16 offset one past this glyph's source characters.
sourceStart: number
UTF-16 offset in the laid-out string this glyph was produced from. The index space is the string handed to layoutText. A glyph that stands for no source character - the ellipsis an overflow appended - reports an empty range at the point it replaced.
uvBottom: number
uvLeft: number
uvRight: number
uvTop: number
width: number
x: number
y: number
Source