You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: Support window-independent scaling: https://github.com/bevyengine/bevy/issues/5621
let window_scale_factor = windows
.get_single()
.map(|window| window.resolution.scale_factor())
.unwrap_or(1.);
If not, that issue may need to be reopened, and perhaps this one closed.
The text was updated successfully, but these errors were encountered:
rparrett
added
C-Bug
An unexpected or incorrect behavior
A-UI
Graphical user interfaces, styles, layouts, and widgets
A-Text
Rendering and layout for characters
labels
Jan 16, 2024
Or perhaps a better title is "
bevy_ui
text rendering always uses the primary window's scale factor, even when rendering to a texture."Bevy version
9f8db0d
Relevant system information
What you did
Have high DPI screen or override scale factor with
cargo run --example render_ui_to_texture
What went wrong
Cube says
This is a cu
.Additional information
Related issue: #5621
If it is true that we now generally support "window-independent ui scaling," then it looks like some code in
bevy_ui
needs to be updated:bevy/crates/bevy_ui/src/widget/text.rs
Lines 234 to 238 in 39cca41
If not, that issue may need to be reopened, and perhaps this one closed.
The text was updated successfully, but these errors were encountered: