Text¶
- class Text¶
A text label. See
Panel.add_text()
.- rect_transform¶
The rect transform for the text.
- Attribute:
Read-only, cannot be set
- Return type:
- visible¶
Whether the UI object is visible.
- Attribute:
Can be read or written
- Return type:
bool
- content¶
The text string
- Attribute:
Can be read or written
- Return type:
str
- font¶
Name of the font
- Attribute:
Can be read or written
- Return type:
str
- available_fonts¶
A list of all available fonts.
- Attribute:
Read-only, cannot be set
- Return type:
list(str)
- size¶
Font size.
- Attribute:
Can be read or written
- Return type:
int
- color¶
Set the color
- Attribute:
Can be read or written
- Return type:
tuple(float, float, float)
- alignment¶
Alignment.
- Attribute:
Can be read or written
- Return type:
- line_spacing¶
Line spacing.
- Attribute:
Can be read or written
- Return type:
float
- remove()¶
Remove the UI object.
- class FontStyle¶
Font style.
- normal¶
Normal.
- bold¶
Bold.
- italic¶
Italic.
- bold_and_italic¶
Bold and italic.