Skip to content

Incorrect layout caused by special characters #22037

@ThierryBerger

Description

@ThierryBerger
  • bevy 0.17, and below (0.16...)

What you did

Using bevy_fluent, with a parameter, my UI layout was broken

Image

What went wrong

  • I expected text to keep within their node space, its Node size being pushed to be bigger.

Additional information

I realized characters \u{2068} and \u{2069} were injected into the localized string. Filtering those out fixes the issue 🎉.

Still, this is probably a symptom of special characters incorrectly handled somewhere, maybe on taffy side?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-TextRendering and layout for charactersC-BugAn unexpected or incorrect behaviorC-DependenciesA change to the crates that Bevy depends onS-Needs-InvestigationThis issue requires detective work to figure out what's going wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions