PlacedGlyph
import type { PlacedGlyph } from 'pixi-silk/text';
A character placed by layoutText.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
char | string | The character (one code point). | text/layout.ts:39 |
index | number | Offset of the character in the source text, in UTF-16 code units. | text/layout.ts:47 |
line | number | Index of the line in TextLayout.lines. | text/layout.ts:45 |
x | number | Pen position: the left of its advance box, after alignment. | text/layout.ts:41 |
y | number | Baseline y. | text/layout.ts:43 |