Text Rework cleanup#15887
Conversation
|
I'm also thinking whether this should reintroduce deprecated |
|
I really like most of these changes :) If we revert the TextUi change IMO it's uncontroversial. |
Yes please! |
|
You added a new example but didn't add metadata for it. Please update the root Cargo.toml file. |
a58c01c to
695a9f7
Compare
|
@Aravind-blip, commenting on PRs that were merged two years ago is unhelpful. Moreover, undisclosed AI use is frustrating and harms trust. Please do not do this again, or you will be banned from this repo. |
|
@alice-i-cecile Thanks for pointing that out. I was completing an external review exercise and didn’t realize commenting on an old merged PR would cause disruption. That wasn’t my intention. I won’t do that again. |
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>Writerconvention.Migration Guide
Doubles as #15591 migration guide.
Text bundles (
TextBundleandText2dBundle) were removed in favor ofTextandText2d.Shared configuration fields were replaced with
TextLayout,TextFontandTextColorcomponents.Just
TextBundle's additional field turned intoTextNodeFlagscomponent,while
Text2dBundle's additional fields turned intoTextBoundsandAnchorcomponents.Text sections were removed in favor of hierarchy-based approach.
For root text entities with
TextorText2dcomponents, child entities withTextSpanwill act as additional text sections.To still access text spans by index, use the new
TextUiReader,Text2dReaderandTextUiWriter,Text2dWritersystem parameters.