Skip to content

Split up TextSection into separate components #14875

@ickshonpe

Description

@ickshonpe

What problem does this solve or what need does it fill?

  • More granular change detection. At the moment changing the colour of a text section triggers an unnecessary relayout.
  • Text2d and UI Text have different requirements. UI text needs responsive size support and that might not make sense for Text2d.

What solution would you like?

Following #14572, replace the TextSection and TextStyle types with new components Text, TextFont, TextSize and TextColor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-TextRendering and layout for charactersC-FeatureA new feature, making something new possibleC-PerformanceA change motivated by improving speed, memory usage or compile timesD-ModestA "normal" level of difficulty; suitable for simple features or challenging fixesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions