TextLayout
import type { TextLayout } from 'pixi-silk/text';
Result of layoutText.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
ascent | number | Font ascent the layout used. | text/layout.ts:90 |
descent | number | Font descent the layout used. | text/layout.ts:92 |
glyphs | PlacedGlyph[] | Every character with a position, spaces included. | text/layout.ts:82 |
height | number | Height of the block, measured the way PixiJS Text does. | text/layout.ts:88 |
lineHeight | number | Distance between baselines. | text/layout.ts:94 |
lines | LayoutLine[] | The lines, top to bottom. Empty text has one empty line. | text/layout.ts:84 |
width | number | Width of the widest line. | text/layout.ts:86 |