bevy/crates/bevy_text/src
MiniaczQ f602edad09
Text Rework cleanup (#15887)
# Objective

Cleanup naming and docs, add missing migration guide after #15591 

All text root nodes now use `Text` (UI) / `Text2d`.
All text readers/writers use `Text<Type>Reader`/`Text<Type>Writer`
convention.

---

## Migration Guide

Doubles as #15591 migration guide.

Text bundles (`TextBundle` and `Text2dBundle`) were removed in favor of
`Text` and `Text2d`.
Shared configuration fields were replaced with `TextLayout`, `TextFont`
and `TextColor` components.
Just `TextBundle`'s additional field turned into `TextNodeFlags`
component,
while `Text2dBundle`'s additional fields turned into `TextBounds` and
`Anchor` components.

Text sections were removed in favor of hierarchy-based approach.
For root text entities with `Text` or `Text2d` components, child
entities with `TextSpan` will act as additional text sections.
To still access text spans by index, use the new `TextUiReader`,
`Text2dReader` and `TextUiWriter`, `Text2dWriter` system parameters.
2024-10-15 02:32:34 +00:00
..
bounds.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
error.rs Remove thiserror from bevy_text (#15762) 2024-10-09 14:27:09 +00:00
FiraMono-subset.ttf add a default font (#8445) 2023-04-21 22:30:18 +00:00
font_atlas_set.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
font_atlas.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
font_loader.rs Remove thiserror from bevy_text (#15762) 2024-10-09 14:27:09 +00:00
font.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
glyph.rs Text rework (#15591) 2024-10-09 18:35:36 +00:00
lib.rs Text Rework cleanup (#15887) 2024-10-15 02:32:34 +00:00
pipeline.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00
text2d.rs Text Rework cleanup (#15887) 2024-10-15 02:32:34 +00:00
text_access.rs Text Rework cleanup (#15887) 2024-10-15 02:32:34 +00:00
text.rs split up TextStyle (#15857) 2024-10-13 17:06:22 +00:00