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.
Returns the alignment mode (any of the ALIGN_* enumeration values).
Returns the amount of lines of text the Label has.
Returns the font size in pixels.
Returns the the number of lines to skip before displaying.
Returns the maximum number of lines to display. Returns -1 if unrestricted.
Returns the maximum number of characters to display as a percentage of the total text.
Returns the label text. Text can contain newlines.
Returns the total length of the text.
Returns the vertical alignment mode (any of the VALIGN_* enumeration values).
Returns the restricted number of characters to display. Returns -1 if unrestricted.
Returns the number of lines shown. Useful if the [code]Label[/code] 's height cannot currently display all lines.
Returns [code]true[/code] if [i]autowrap[/i] mode (see [method set_autowrap]).
Returns [code]true[/code] if text would be cut off if it is too wide.
Returns [code]true[/code] if text is displayed in all capitals.
Sets the alignment mode to any of the ALIGN_* enumeration values.
Set [i]autowrap[/i] mode. When enabled, autowrap will fit text to the control width, breaking sentences when they exceed the available horizontal space. When disabled, the label minimum width becomes the width of the longest row, and the minimum height large enough to fit all rows.
Cuts off the rest of the text if it is too wide.
Sets the number of lines to skip before displaying. Useful for scrolling text.
Restricts the number of lines to display. Set to -1 to disable.
Restricts the number of characters to display (as a percentage of the total text).
Set the label text. Text can contain newlines.
Display text in all capitals.
Sets the vertical alignment mode to any of the VALIGN_* enumeration values.
Restricts the number of characters to display. Set to -1 to disable.
- Controls the text's horizontal align. Supports left, center, right, and fill, or justify. Set it to one of the [code]ALIGN_*[/code] constants.
- If [code]true[/code], wraps the text inside the node's bounding rectangle. If you resize the node, it will change its height automatically to show all the text. Default: false.
- If [code]true[/code], the Label only shows the text that fits inside its bounding rectangle. It also lets you scale the node down freely.
- 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 count of visible characters. If you set [code]percent_visible[/code] to 50, only up to half of the text's characters will display on screen. Useful to animate the text in a dialog box.
- The text to display on screen.
- If [code]true[/code], all the text displays as UPPERCASE.
- Controls the text's vertical align. Supports top, center, bottom, and fill. Set it to one of the [code]VALIGN_*[/code] constants.
Align rows to the left (default).
Align rows centered.
Align rows to the right (default).
Expand row whitespaces to fit the width.
Align the whole text to the top.
Align the whole text to the center.
Align the whole text to the bottom.
Align the whole text by spreading the rows.