bevy icon indicating copy to clipboard operation
bevy copied to clipboard

Update `TextLayoutInfo`'s `scale factor` and `size` in `queue_text`

Open ickshonpe opened this issue 1 month ago • 0 comments

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.

ickshonpe avatar Dec 02 '25 13:12 ickshonpe