Up to date
This page is up to date for Redot 4.3
.
If you still find outdated information, please create an issue.
LabelSettingsΒΆ
Inherits: Resource < RefCounted < Object
Provides common settings to customize the text in a Label.
DescriptionΒΆ
LabelSettings is a resource that provides common settings to customize the text in a Label. It will take priority over the properties defined in Control.theme. The resource can be shared between multiple labels and changed on the fly, so it's convenient and flexible way to setup text style.
PropertiesΒΆ
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Property DescriptionsΒΆ
Font used for the text.
Color font_color = Color(1, 1, 1, 1)
π
Color of the text.
Size of the text.
Vertical space between lines when the text is multiline.
Color outline_color = Color(1, 1, 1, 1)
π
The color of the outline.
Text outline size.
Color shadow_color = Color(0, 0, 0, 0)
π
Color of the shadow effect. If alpha is 0
, no shadow will be drawn.
Vector2 shadow_offset = Vector2(1, 1)
π
Offset of the shadow effect, in pixels.
Size of the shadow effect.