Documentation / @ripl/terminal / layoutGlyphRun
Function: layoutGlyphRun() ​
layoutGlyphRun(
options):GlyphRun|undefined
Defined in: terminal/src/text.ts:90
Lays a text run onto the character grid, honoring the current transform.
The anchor is mapped through the transform, and the run then advances one cell at a time along the transform's own x axis, snapped to the grid.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
options | GlyphRunOptions | The run to lay out and the state to lay it out against. |
Returns ​
GlyphRun | undefined
The laid-out run, or undefined when nothing is left to draw.