Expose TextServer justification flags to Label, Label3D, TextMesh and RTL. Add flags to control last/single line justification.

This commit is contained in:
bruvzg 2023-03-23 11:22:37 +02:00
parent 5c653c27cd
commit 9163d8c336
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
24 changed files with 292 additions and 46 deletions

View file

@ -29,6 +29,9 @@
<member name="horizontal_alignment" type="int" setter="set_horizontal_alignment" getter="get_horizontal_alignment" enum="HorizontalAlignment" default="1">
Controls the text's horizontal alignment. Supports left, center, right, and fill, or justify. Set it to one of the [enum HorizontalAlignment] constants.
</member>
<member name="justification_flags" type="int" setter="set_justification_flags" getter="get_justification_flags" enum="TextServer.JustificationFlag" default="163">
Line fill alignment rules. For more info see [enum TextServer.JustificationFlag].
</member>
<member name="language" type="String" setter="set_language" getter="get_language" default="&quot;&quot;">
Language code used for text shaping algorithms, if left empty current locale is used instead.
</member>