Skip to content
pixi-silk
GitHub repository
Interface

PlacedGlyph

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

A character placed by layoutText.

Properties#

PropertyTypeDescriptionDefined in
charstringThe character (one code point).text/layout.ts:39
indexnumberOffset of the character in the source text, in UTF-16 code units.text/layout.ts:47
linenumberIndex of the line in TextLayout.lines.text/layout.ts:45
xnumberPen position: the left of its advance box, after alignment.text/layout.ts:41
ynumberBaseline y.text/layout.ts:43