You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I encountered an issue with Unicode text alignment in Lottie on Android. When I dynamically change the text to Unicode characters, such as emojis or special font text, the center alignment is lost, and the text shifts to the left. This issue does not occur on iOS or Web.
To test this issue, I used the following sample Lottie animation and modified the text by using addValueCallback to update the "Content_Text" layer. text_center.json
Here is a screenshot of the template before the text was changed.
After I change the text to a normal string, it returns to center alignment.
Below are some screenshots showing the results after I dynamically changed the text to emojis and special font characters. As shown, the text shifts to the left, and when I change to a longer text, it even overflows beyond the animation bounds and gets cut off.
What version of Lottie did you test this on?
6.5.2
What version of Android did you test this on?
14
The text was updated successfully, but these errors were encountered:
Describe the bug
I encountered an issue with Unicode text alignment in Lottie on Android. When I dynamically change the text to Unicode characters, such as emojis or special font text, the center alignment is lost, and the text shifts to the left. This issue does not occur on iOS or Web.
To test this issue, I used the following sample Lottie animation and modified the text by using addValueCallback to update the "Content_Text" layer.
text_center.json
Here is a screenshot of the template before the text was changed.
After I change the text to a normal string, it returns to center alignment.
Below are some screenshots showing the results after I dynamically changed the text to emojis and special font characters. As shown, the text shifts to the left, and when I change to a longer text, it even overflows beyond the animation bounds and gets cut off.
What version of Lottie did you test this on?
6.5.2
What version of Android did you test this on?
14
The text was updated successfully, but these errors were encountered: