Skip to content
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

Support for RTL languages like arabic. characters are not combined. #248

Open
jaber2028 opened this issue May 22, 2024 · 3 comments
Open

Comments

@jaber2028
Copy link

jaber2028 commented May 22, 2024

Sample text i am trying is اسم this but its rendered as below image, anyone has faced this issue. what could be the solution to support this.

Screenshot 2024-05-22 at 12 02 20 PM

i am using the latest dist from <script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>

Very similar issue at lottie-android here airbnb/lottie-android#2279 and relevant fix https://github.com/airbnb/lottie-android/pull/2001/files

And was there in lottie web (airbnb/lottie-web#1603) and the provided patch here(airbnb/lottie-android#1396) worked for lottie web.

but not sure how to make it work for lottie-player

@jaber2028 jaber2028 changed the title Support for RTL languages like arabic. characters are not cobined. Support for RTL languages like arabic. characters are not combined. May 22, 2024
@jaber2028
Copy link
Author

@samuelOsborne any help here would be great.

@theashraf
Copy link
Member

@jaber2028 lottie-player uses Lottie-Web as its renderer. Currently, we are using the latest version of lottie-web v5.12.2, which includes the referenced fix mentioned in the issue, i don't think there is something can be done from lottie-player end

@theashraf
Copy link
Member

@jaber2028, you might want to try your animation on dotlottie-web, which uses ThorVG as the Lottie renderer. For quick testing of your animation on dotlottie-web, you can use the dotLottie viewer here: https://lottiefiles.github.io/dotlottie-web/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants