Skip to content

Conversation

@ickshonpe
Copy link
Contributor

@ickshonpe ickshonpe commented Jan 2, 2026

Objective

Using a septuple to store the section data makes the module harder to follow.

Solution

  • Replace the septuple with a struct TextSectionInfo with named fields.
  • Rename the private glyph_info field of TextPipeline to section_info_buffer. It stores per-section data, not per-glyph.

Testing

If there are any problems, the screenshot CI will pick them up.

@ickshonpe ickshonpe added C-Code-Quality A section of code that is hard to understand or change A-Text Rendering and layout for characters D-Trivial Nice and easy! A great choice to get started with Bevy S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jan 2, 2026
@ickshonpe ickshonpe changed the title Replace the septuple in bevy_text::pipeline with a struct with named fields Replace the section info septuple in bevy_text::pipeline with a struct Jan 2, 2026
@ickshonpe
Copy link
Contributor Author

ickshonpe commented Jan 3, 2026

Closed in favour #22156 which removes the septuple completely.

@ickshonpe ickshonpe closed this Jan 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Text Rendering and layout for characters C-Code-Quality A section of code that is hard to understand or change D-Trivial Nice and easy! A great choice to get started with Bevy S-Needs-Review Needs reviewer attention (from anyone!) to move forward

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants