Code: Select all
love.window.setMode(140, 100)
function love.draw()
love.graphics.printf('This is a simple sample text which is long enough.',
0, 0, 140, 'justify')
end
It also looks like the spacing isn't even in the latter case, but I can't assure it.
Edit: I wrote my own justifier and made a mistake at first. If there are N words, there are N-1 spaces between them, so the difference between the left-justified line and the whole width of the line needs to be divided by N-1, not by N, to calculate the spacing to add between words. When I divided it by N by mistake, the result was quite similar to this bug. I wonder if that's related to the issue.