TextCompOpt
:Options for the text component.
group
Component Types
size
?: numberHeight of text.
font
?: string | BitmapFontDataThe font to use.
width
?: numberWrap text to a certain width.
align
?: TextAlignText alignment ("left", "center" or "right", default "left").
since
v3000.0
lineSpacing
?: numberThe gap between each line.
since
v2000.2
letterSpacing
?: numberThe gap between each character.
since
v2000.2
transform
?: CharTransform | CharTransformFuncTransform the pos, scale, rotation or color for each character based on the index or char.
since
v2000.1
styles
?: Record<string, CharTransform | CharTransformFunc>Stylesheet for styled chunks, in the syntax of "this is a [style]text[/style] word".
since
v2000.2
indentAll
?: booleanIf true, any (whitespace) indent on the first line of the paragraph will be copied to all of the lines for those parts that text-wrap.