UiScale no longer scales text correctly in Bevy main branch #7476
Labels
A-UI
Graphical user interfaces, styles, layouts, and widgets
C-Bug
An unexpected or incorrect behavior
P-Regression
Functionality that used to work but no longer does. Add a test for this!
Milestone
Bevy version
The Bevy main branch, currently commit: 1a18ab3
[Optional] Relevant system information
Rust: 1.67.0
OS: Windows 10 Pro version 10.0.19045 Build 19045
What you did
After updating an existing game project to work with the current Bevy main branch for testing purposes, I noticed that all UI text was extremely tiny and borderline unreadable.
What went wrong
This is because UiScale, which in 0.9.x works correctly and upscales all UI elements, doesn't seem to work on text anymore.
UiScale to work the same as before and scale the text up, so that it matches with the rest of the UI and looks correct at all pixel scale values.
Text always stays the same size (as scale = 1.0), and there also seems to be something very odd going on with positioning, which I'm not entirely sure of the logic of. When pixel scale is increased, all text seems to move to the left, eventually completely off screen.
Additional information
Minimal reproduction repository:
https://github.com/forbjok/bevy_ui_repro
(Press X to increase pixel scale)
The text was updated successfully, but these errors were encountered: