Skip to content

RTL languages rendering incorrectly #2658

@nrchan

Description

@nrchan

Describe the bug
Lottie Android doesn't render right-to-left languages correctly.

  • It is expected be from right to left
  • Arabic characters need to be connected

What version of Lottie did you test this on?
6.6.7

What version of Android did you test this on?
Android 16

Steps To Reproduce
Steps to reproduce the behavior:

  1. Include RTL languages in text layer (rtl.json)
  2. In the animation, the character is rendered from left to right.

Screenshots

Tested text:

  • مرحبا
  • مَرْحَبًا٣٢١ One واحد Two اتنين
  • لكلِّ فرد الحقُّ في الحياة والحرِّية وفي الأمان على شخصه.
  • שלום
  • שָׁלוֹם One אחד Two שניים
  • כל אדם יש לו הזכות לחיים, לחירות ולביטחון אישי.

Actual result:
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions