API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
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?: booleanWhether 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: numberpage: numberWhich AtlasPage within the atlas holds this glyph's texture data.
penAdvance: numberPen step from this glyph to the next, letterSpacing included.
penX: numberPen 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: numberUTF-16 offset one past this glyph's source characters.
sourceStart: numberUTF-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: numberuvLeft: numberuvRight: numberuvTop: numberwidth: numberx: numbery: numberSource