Skip to content

Text displacement in some languages. #2569

Description

@sam880222

Description

I have a Lottie View that displays texts according to the user's language settings.
However, in some languages, the texts are not in the correct position.

Steps to Reproduce

  1. Use LottieView to read and play test.json.
  2. Use the textProvider to replace the text in various languages.
  3. Observe that the text is displaced in languages like Japanese and Korean.

Expected Behavior

The texts should be centered vertically.
I only found a workaround that adds a "\0" null character to the text, and the text is positioned correctly.
Image

Actual Behavior

The texts shift up.
Image

Environment

• lottie-ios version: 4.5.0
• iOS version: iOS >16.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions