You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -148,7 +148,7 @@ The `settings` table can contain the following values:
148
148
*`color` (vector4) - The default color of text. Will be white if not specified.
149
149
*`shadow` (vector4) - The default shadow color of text. Will be transparent if not specified.
150
150
*`outline` (vector4) - The default outline color of text. Will be transparent if not specified.
151
-
*`align` (hash) - One of `richtext.ALIGN_LEFT`, `richtext.ALIGN_CENTER`and `richtext.ALIGN_RIGHT`. Defaults to `richtext.ALIGN_LEFT`. Defines how the words of a line of text are positioned in relation the provided `position`.
151
+
*`align` (hash) - One of `richtext.ALIGN_LEFT`, `richtext.ALIGN_CENTER`, `richtext.ALIGN_RIGHT`and `richtext.ALIGN_JUSTIFY`. Defaults to `richtext.ALIGN_LEFT`. Defines how the words of a line of text are positioned in relation the provided `position`. Width must be specified for `richtext.ALIGN_JUSTIFY`.
152
152
*`line_spacing` (number) - Value to multiply line height with. Set to a value lower than 1.0 to reduce space between lines and a value higher than 1.0 to increase space between lines. Defaults to 1.0.
153
153
*`image_pixel_grid_snap` (boolean) - Set to true to position image on full pixels (positions rounded to nearest integer) to avoid effects of anti-aliasing. Defaults to false.
154
154
*`combine_words` (boolean) - Set to true to combine words with the same style on a line into a single node. This is useful for very long texts where the maximum number of nodes would exceed the limit set in the GUI. The disadvantage is that any per word operations will not work since the words have been combined.
@@ -276,6 +276,9 @@ Center text. The words of a line are centered on the specified position (see `ri
276
276
### richtext.ALIGN_RIGHT
277
277
Right-align text. The words of a line ends at the specified position (see `richtext.create` settings above).
278
278
279
+
### richtext.ALIGN_JUSTIFT
280
+
Justify text. The words of a line start at the specified position and are spaced such that the last character of the last word ends at the right edge of the line bounds (see `richtext.create` settings above).
281
+
279
282
280
283
# Credits
281
284
* Smiley icons in example app from [Flaticons](https://www.flaticon.com/packs/smileys-3)
0 commit comments