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

react-lottie-player fails on complex text rendering #91

Closed
HeidiHe opened this issue Jan 17, 2023 · 1 comment
Closed

react-lottie-player fails on complex text rendering #91

HeidiHe opened this issue Jan 17, 2023 · 1 comment

Comments

@HeidiHe
Copy link

HeidiHe commented Jan 17, 2023

I am working on a multi-language project with react-lottie-player. There are languages such as Thai, Burmese and Khmer that aren't using latin character like English, but abugidas where consonants are merged together with vowels to form one new character, for example: ဆ + ျ => ဆျ. However, to my observation, react-lottie-player splits all characters and renders them separately. Therefore "ဆျ" would be rendered as ဆ ျ. Is there a solution to this problem? Many thanks.

e.g. Burmese rendering:
lottie_breaks_down

@HeidiHe
Copy link
Author

HeidiHe commented Jan 18, 2023

update: I read through the source code and found out that I blamed react-lottie-player wrong. The problem is actually from its dependency lottie-web. There is a thread about it. Luckily react-lottie-player is based on the older version of lottie-web, so manually installing the older version wouldn't break anything we have here.

@HeidiHe HeidiHe closed this as completed Jan 18, 2023
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

1 participant