Skip to content

Flip coordinates along the Y-axis for Text2d rendering #21693

@ickshonpe

Description

@ickshonpe

What problem does this solve or what need does it fill?

Text layouts are generated with the y-axis increasing downwards, but with bevy_sprite the y-axis increases upwards.
In bevy_sprite_render extract_text2d_sprite negates the y-coordinate for each glyph and text decoration individually. The system could be simplified by transforming the coordinate space instead.

What solution would you like?

Transform the coordinate space instead of negating the individual y values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenA-TextRendering and layout for charactersC-Code-QualityA section of code that is hard to understand or changeS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions