Attention: Here be dragons (unstable version)
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Redot.
Checking the stable version of the documentation...
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.
Additional vertical spacing between lines (in pixels), spacing is added to line descent. This value can be negative.
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.