API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceLineShaper
How a laid-out line is turned into something placeable when the engine has to hand the whole line to the browser's text engine as one shaping unit. Two implementations exist and the layout pass cannot tell them apart: `ShapedTextMetrics` answers measurements only and allocates no GPU resource, `ShapedTextSource` also rasterizes. That is what keeps `Text.measure()` free of render allocations while giving it the same numbers the node will use.
import { LineShaper } from '@codexo/exojs'How a laid-out line is turned into something placeable when the engine has to hand the whole line to the browser's text engine as one shaping unit.
Two implementations exist and the layout pass cannot tell them apart: `ShapedTextMetrics` answers measurements only and allocates no GPU resource, `ShapedTextSource` also rasterizes. That is what keeps `Text.measure()` free of render allocations while giving it the same numbers the node will use.
measureLine(line: string, fontSize: number): numbershapeLine(line: string, fontSize: number): GlyphInfoCached glyph data stored in an atlas page after rasterization.