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
Arabic text rendered incorrectly #2279
Labels
Comments
Would you be willing to put up a pull request for this? I'm not an expert in RTL or non-latin languages so it would be great if somebody with more familiarity could take a look. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Arabic text is displayed incorrectly: the letters are not joined. Here's an image that explains how arabic text is supposed to be rendered:
And here's how it looks like in Lottie:
device-2023-04-17-191627.mp4
Animation file: arabic.zip
This issue has been previously reported in #1755, and it was suppose to be resolved in #2001. Unfortunately, that doesn't seem to be the case.
I did investigate the issue. Adding
OTHER_LETTER
to theisModifier
function seems to fix it:However, I'm not sure if this may break other elements as the category Lo contains 127,004 character. Furthermore, this solution alone won't solve the issue of RTL languages (there's already an open issue #1145 for it). I did find a potential solution for this:
After applying all the changes above, the animation looks correct:
device-2023-04-17-191243.mp4
What version of Lottie did you test this on?
6.0.0
What version of Android did you test this on?
Android 11
The text was updated successfully, but these errors were encountered: