bevy/crates/bevy_text/src
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
..
bounds.rs Rename JustifyText to Justify (#19522) 2025-06-09 19:59:48 +00:00
error.rs Deny derive_more error feature and replace it with thiserror (#16684) 2024-12-06 17:03:55 +00:00
FiraMono-subset.ttf add a default font (#8445) 2023-04-21 22:30:18 +00:00
font_atlas_set.rs Replace Handle::Weak with Handle::Uuid. (#19896) 2025-07-02 14:40:35 +00:00
font_atlas.rs Add UVec to_extents helper method (#19807) 2025-06-26 20:53:49 +00:00
font_loader.rs Deny derive_more error feature and replace it with thiserror (#16684) 2024-12-06 17:03:55 +00:00
font.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
glyph.rs Replace Handle::Weak with Handle::Uuid. (#19896) 2025-07-02 14:40:35 +00:00
lib.rs Rename JustifyText to Justify (#19522) 2025-06-09 19:59:48 +00:00
pipeline.rs Replace Handle::Weak with Handle::Uuid. (#19896) 2025-07-02 14:40:35 +00:00
text2d.rs Text2d bounding box fix (#20148) 2025-07-15 17:14:49 +00:00
text_access.rs Relationships (non-fragmenting, one-to-many) (#17398) 2025-01-18 22:20:30 +00:00
text.rs Bevy Feathers: an opinionated widget toolkit for building Bevy tooling (#19730) 2025-06-28 19:52:13 +00:00