LottieFiles / lottie-player

Lottie viewer/player as an easy to use web component! https://lottiefiles.com/web-player
MIT License
1.53k stars 172 forks source link

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

Open jaber2028 opened 3 months ago

jaber2028 commented 3 months ago

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

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

And was there in lottie web (https://github.com/airbnb/lottie-web/issues/1603) and the provided patch here(https://github.com/airbnb/lottie-android/issues/1396) worked for lottie web.

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

jaber2028 commented 3 months ago

@samuelOsborne any help here would be great.

theashraf commented 3 months ago

@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 commented 3 months ago

@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/.