-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected outcomes when using RTL in Löve12 #1942
Comments
Huh, there is one BIG topic about this |
The current version (LÖVE 11.4) actually has good support for font and text rendering, it also supports unicode. What is missing from the current system is support for text direction and shaping, which can be done manually. With LÖVE 12, support for HarfBuzz was added and the mentioned shortcomings should be gone, it only needs testing and fixing to make sure it's working as intended. |
Woah, harfbuzz is good news |
48e23a0 seems to have fixed the printf wrapping issue. |
It seems that
Font:setFallbacks( )
is complicated in how it works in the background, I tested it more to see if it works perfectly with RTL languages when used together with LTR fonts. And I apologize for not testing it thoroughly the first time. The results as follows:It's supposed to look like this "اختبار العربية".
This is the code, switch the order of the fonts and comment/uncomment the prints as you see fit.
There is another problem, it happens when using
love.graphics.printf
. It happens with RTL (Arabic in this case) and not LTR fonts. It displays the text like this when using a big limit:I used this code:
The fonts here to test with.
The text was updated successfully, but these errors were encountered: