LayoutOptions
import type { LayoutOptions } from 'pixi-silk/text';
What layoutText needs besides the text. Sizes are in local units.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
align? | TextAlign | Alignment of the lines inside the widest line. Default left. | text/layout.ts:23 |
ascent | number | Font ascent: baseline to the top of the line box. | text/layout.ts:15 |
breakWords? | boolean | Breaks words that do not fit on a line of their own. Default false. | text/layout.ts:29 |
descent | number | Font descent: baseline to the bottom of the line box. | text/layout.ts:17 |
kerning? | boolean | Applies the font’s kerning. Default true. | text/layout.ts:33 |
letterSpacing? | number | Extra space after each character. Default 0. | text/layout.ts:19 |
lineHeight? | number | Distance between baselines. Default ascent + descent. | text/layout.ts:21 |
tabularNumbers? | boolean | Gives the digits 0 to 9 one width, so numbers do not jitter as they change. Default false. | text/layout.ts:31 |
wordWrap? | boolean | Breaks lines longer than wordWrapWidth at spaces. Default false. | text/layout.ts:25 |
wordWrapWidth? | number | Line width that wordWrap breaks at. Default 100. | text/layout.ts:27 |