Closed Bethleem closed 3 years ago
Could you please share the string you used? I'm unable to reproduce it.
anchoPantalla, altoPantalla = window.get_size()
local settings = { position = vmath.vector3(0, altoPantalla, 0), align = richtext.ALIGN_JUSTIFY, width=anchoPantalla, fonts = { Roboto = ROBOTO } }
richtext.create(tostring(anchoPantalla).." "..tostring(altoPantalla).." Lorem ipsum tocoto moren na\
\
no way \
\
Project display width and height are set to 385 and 680.
Thanks for the repro!
When a richtext is created with ALIGN_JUSTIFY parameter and the last line is´nt a full line, the extra space from the last character to the right border is divided and added as space between the words of the line, even if you end the line with a \
. It is "justifying" all that free space that should remain as a whole before the last character of that last line.or \