TextCompOpt:
Options for the text component.
size?: number
Height of text.font?: string | BitmapFontData
The font to use.width?: number
Wrap text to a certain width.align?: TextAlign
Text alignment ("left", "center" or "right", default "left").since
lineSpacing?: number
The gap between each line.since
letterSpacing?: number
The gap between each character.since
transform?: CharTransform | CharTransformFunc
Transform the pos, scale, rotation or color for each character based on the index or char.since
styles?: Record<string, CharTransform | CharTransformFunc>
Stylesheet for styled chunks, in the syntax of "this is a [style]text[/style] word".since