Interface
TextComp
:The text component.
group
Component Types
draw
: Comp["draw"]text
: stringThe text to render.
renderedText
: stringThe text after formatting.
textSize
: numberThe text size.
font
: string | BitmapFontDataThe font to use.
width
: numberWidth of text.
height
: numberHeight of text.
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
textTransform
: CharTransform | CharTransformFuncTransform the pos, scale, rotation or color for each character based on the index or char.
since
v2000.1
textStyles
: Record<string, CharTransform | CharTransformFunc>Stylesheet for styled chunks, in the syntax of "this is a [style]text[/style] word".
since
v2000.2
renderArea
(): Rectsince
v3000.0