Skip to content

TextLayoutInfo doesn't contain every processed glyph #13063

@eidloi

Description

@eidloi

Bevy version

0.13

What you did

Debug log any TextLayoutInfo to inspect the glyph list.

What went wrong

The TextLayoutInfo only contains PositionedGlyphs that are from the outlined list.

Additional information

Interacting with text (i.e. placing a caret, selection) is impossible without knowing the positions of individual glyph and their relation to the sections they came from. While the relation part can be worked around, the position and scale of the rendered glyph is necessary. This info is currently opaque and recalculating it is both expensive and needs copy/paste of private bevy code, such as the GlyphPlacementAdjuster

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-TextRendering and layout for charactersA-UIGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions