Documentation / @ripl/terminal / GlyphRunOptions
Interface: GlyphRunOptions ​
Defined in: terminal/src/text.ts:20
Options describing the text run to lay out.
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
cellHeight | number | Height of one character cell, in raster pixels. | terminal/src/text.ts:34 |
cellWidth | number | Width of one character cell, in raster pixels. | terminal/src/text.ts:32 |
content | string | The text to lay out. | terminal/src/text.ts:22 |
maxWidth? | number | Maximum run length in logical units, beyond which the content is truncated. | terminal/src/text.ts:28 |
textAlign | string | How the run is anchored horizontally. | terminal/src/text.ts:36 |
textBaseline | string | How the run is anchored vertically. | terminal/src/text.ts:38 |
transform | TerminalTransform | The logical-to-raster mapping in force. | terminal/src/text.ts:30 |
x | number | X coordinate of the text's anchor, in logical space. | terminal/src/text.ts:24 |
y | number | Y coordinate of the text's anchor, in logical space. | terminal/src/text.ts:26 |