TextRun¶
Class | orca.UIKit
Shared concept for text rendering in 2D and 3D nodes.
Overview¶
Properties¶
| Property | Type | Description |
|---|---|---|
Text |
string |
The short text string displayed in the block, limited to 64 bytes. If you need more space consider using TextResourceID. In Lua/MoonScript authoring, prefer passing text as the trailing value argument (for example: TextBlock class: "text-3xl", title or Button class: "btn", "Save") instead of setting Text= explicitly when possible. |
Font |
FontShorthand |
Font definition used for text rendering. Contains typeface, size, and style information. |
Underline |
UnderlineShorthand |
Underline style applied to the text. |
LetterSpacing |
float |
Additional spacing applied between letters. |
LineHeight |
float |
Line height multiplier for multi-line text layout. |
CharacterSpacing |
float |
Extra spacing between characters, beyond kerning. |
FixedCharacterWidth |
float |
Forces a fixed width per character (monospace effect). |
RemoveSideBearingsProperty |
bool |
Removes side bearings (spacing) defined by the font. |