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

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
ivan
Party member
Posts: 1911
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

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

Post 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!
tbsp
Prole
Posts: 1
Joined: Tue Aug 07, 2018 7:51 pm

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

Post 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.
User avatar
ivan
Party member
Posts: 1911
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

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

Post 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.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 35 guests