bevy
bevy copied to clipboard
Update `TextLayoutInfo`'s `scale factor` and `size` in `queue_text`
Objective
TextLayoutInfo's scale_factor and size aren't set by queue_text when it's updated but left to the calling function to update for some reason.
Solution
Update TextLayoutInfo's scale factor and size in queue_text
Testing
cargo run --example text2d
If the changes are correct, the text layout should be unchanged at any window scale factor with this PR compared to main.