Page 1 of 1

Right-to-left languages and love.graphics.printf

Posted: Mon Jan 08, 2018 5:27 pm
by ivan
Hello, I'm porting a few games to Love2D and one of them has an Arabic localization.
My question is: does love.graphics.printf support RTL languages?
What I mean is, typically with LTR we wrap and break the string from the right side:
1234-
56789
But with RTL the wrapping has to be done from the left:
-4321
98765
This has to do with how the characters flow and is independent of the text alignment.
Any tips on this would be much appreciated!

Re: Right-to-left languages and love.graphics.printf

Posted: Tue Aug 07, 2018 7:53 pm
by tbsp
Did you ever have luck getting RTL text printed properly in Love2D? I was considering using Love2D for a project using Persian, but it would require RTL support.

Re: Right-to-left languages and love.graphics.printf

Posted: Sun Aug 12, 2018 4:13 pm
by ivan
To be honest, I just made sure that we don't have to wrap the text our games.
The "wrapping" issue mentioned above might only be a problem if you have blocks of text.
It's also possible to wrap the text using Lua as well.