Skip to content

Documentation / @ripl/terminal / GlyphRunOptions

Interface: GlyphRunOptions ​

Defined in: terminal/src/text.ts:20

Options describing the text run to lay out.

Properties ​

PropertyTypeDescriptionDefined in
cellHeightnumberHeight of one character cell, in raster pixels.terminal/src/text.ts:34
cellWidthnumberWidth of one character cell, in raster pixels.terminal/src/text.ts:32
contentstringThe text to lay out.terminal/src/text.ts:22
maxWidth?numberMaximum run length in logical units, beyond which the content is truncated.terminal/src/text.ts:28
textAlignstringHow the run is anchored horizontally.terminal/src/text.ts:36
textBaselinestringHow the run is anchored vertically.terminal/src/text.ts:38
transformTerminalTransformThe logical-to-raster mapping in force.terminal/src/text.ts:30
xnumberX coordinate of the text's anchor, in logical space.terminal/src/text.ts:24
ynumberY coordinate of the text's anchor, in logical space.terminal/src/text.ts:26