bevy/crates/bevy_text
ickshonpe f774d6b7ed
Text2d bounding box fix (#20148)
# Objective

`calculate_bounds_text2d` generates `Aabb`s with the wrong size and
position for `Text2d` entities with `TextBounds`, which breaks culling.

## Solution

Calculate the correct bounds.

Fixes #20145

## Testing

```
cargo run --example testbed_2d
```

#### main
<img width="661" height="469" alt="text2daabb"
src="https://github.com/user-attachments/assets/c10b64ed-6e0d-4c4e-a81d-6ae2248d752a"
/>

#### This PR

<img width="441" height="308" alt="fixed-text2d-aabbs"
src="https://github.com/user-attachments/assets/bc715bf0-b77f-4149-9c6d-a5a8c1982780"
/>
2025-07-15 17:14:49 +00:00
..
src Text2d bounding box fix (#20148) 2025-07-15 17:14:49 +00:00
Cargo.toml consistently dont use smallvec default features (#19972) 2025-07-06 04:25:26 +00:00
LICENSE-APACHE
LICENSE-MIT
README.md

Bevy Text

License Crates.io Downloads Docs Discord