Skip to content
pixi-silk
GitHub repository
Interface

TextLayout

import type { TextLayout } from 'pixi-silk/text';

Result of layoutText.

Properties#

PropertyTypeDescriptionDefined in
ascentnumberFont ascent the layout used.text/layout.ts:90
descentnumberFont descent the layout used.text/layout.ts:92
glyphsPlacedGlyph[]Every character with a position, spaces included.text/layout.ts:82
heightnumberHeight of the block, measured the way PixiJS Text does.text/layout.ts:88
lineHeightnumberDistance between baselines.text/layout.ts:94
linesLayoutLine[]The lines, top to bottom. Empty text has one empty line.text/layout.ts:84
widthnumberWidth of the widest line.text/layout.ts:86