Displays plain text in a line or wrapped inside a rectangle. For formatted text, use [RichTextLabel].
Label displays plain text on the screen. It gives you control over the horizontal and vertical alignment and can wrap the text inside the node's bounding rectangle. It doesn't support bold, italics, or other formatting. For that, use [RichTextLabel] instead.
[b]Note:[/b] Contrarily to most other [Control]s, Label's [member Control.mouse_filter] defaults to [constant Control.MOUSE_FILTER_IGNORE] (i.e. it doesn't react to mouse input events). This implies that a label won't display any configured [member Control.hint_tooltip], unless you change its mouse filter.
https://godotengine.org/asset-library/asset/515
Removes all OpenType features.
Returns the amount of lines of text the Label has.
Returns the height of the line [code]line[/code].
If [code]line[/code] is set to [code]-1[/code], returns the biggest line height.
If there're no lines returns font size in pixels.
Returns OpenType feature [code]tag[/code].
Returns the total number of printable characters in the text (excluding spaces and newlines).
Returns the number of lines shown. Useful if the [Label]'s height cannot currently display all lines.
Returns OpenType feature [code]tag[/code]. More info: [url=https://docs.microsoft.com/en-us/typography/opentype/spec/featuretags]OpenType feature tags[/url].
If set to something other than [constant AUTOWRAP_OFF], the text gets wrapped inside the node's bounding rectangle. If you resize the node, it will change its height automatically to show all the text. To see how each mode behaves, see [enum AutowrapMode].
If [code]true[/code], the Label only shows the text that fits inside its bounding rectangle and will clip text horizontally.
Controls the text's horizontal alignment. Supports left, center, right, and fill, or justify. Set it to one of the [enum HorizontalAlignment] constants.
Language code used for line-breaking and text shaping algorithms, if left empty current locale is used instead.
The node ignores the first [code]lines_skipped[/code] lines before it starts to display text.
Limits the lines of text the node shows on screen.
Limits the amount of visible characters. If you set [code]percent_visible[/code] to 0.5, only up to half of the text's characters will display on screen. Useful to animate the text in a dialog box.
[b]Note:[/b] Setting this property updates [member visible_characters] based on current [method get_total_character_count].
Set BiDi algorithm override for the structured text.
Set additional options for BiDi override.
The text to display on screen.
Base text writing direction.
Sets the clipping behavior when the text exceeds the node's bounding rectangle. See [enum OverrunBehavior] for a description of all modes.
If [code]true[/code], all the text displays as UPPERCASE.
Controls the text's vertical alignment. Supports top, center, bottom, and fill. Set it to one of the [enum VerticalAlignment] constants.
Restricts the number of characters to display. Set to -1 to disable.
[b]Note:[/b] Setting this property updates [member percent_visible] based on current [method get_total_character_count].
Sets the clipping behavior when [member visible_characters] or [member percent_visible] is set. See [enum VisibleCharactersBehavior] for more info.
Autowrap is disabled.
Wraps the text inside the node's bounding rectangle by allowing to break lines at arbitrary positions, which is useful when very limited space is available.
Wraps the text inside the node's bounding rectangle by soft-breaking between words.
Behaves similarly to [constant AUTOWRAP_WORD], but force-breaks a word if that single word does not fit in one line.
No text trimming is performed.
Trims the text per character.
Trims the text per word.
Trims the text per character and adds an ellipsis to indicate that parts are hidden.
Trims the text per word and adds an ellipsis to indicate that parts are hidden.
Trims text before the shaping. e.g, increasing [member visible_characters] value is visually identical to typing the text.
Displays glyphs that are mapped to the first [member visible_characters] characters from the beginning of the text.
Displays [member percent_visible] glyphs, starting from the left or from the right, depending on [member Control.layout_direction] value.
Displays [member percent_visible] glyphs, starting from the left.
Displays [member percent_visible] glyphs, starting from the right.
Default text [Color] of the [Label].
The tint of [Font]'s outline.
[Color] of the text's shadow effect.
Vertical space between lines in multiline [Label].
Text outline size.
The horizontal offset of the text's shadow.
The vertical offset of the text's shadow.
The size of the shadow outline.
[Font] used for the [Label]'s text.
Font size of the [Label]'s text.
Background [StyleBox] for the [Label].