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-UIGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorC-DependenciesA change to the crates that Bevy depends onS-Needs-TriageThis issue needs to be labelled

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions