-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
A-TextRendering and layout for charactersRendering and layout for charactersA-UIGraphical user interfaces, styles, layouts, and widgetsGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behavior
Description
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
Labels
A-TextRendering and layout for charactersRendering and layout for charactersA-UIGraphical user interfaces, styles, layouts, and widgetsGraphical user interfaces, styles, layouts, and widgetsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behavior