SIGN IN SIGN UP
bevyengine / bevy UNCLAIMED

A refreshingly simple data-driven game engine built in Rust

0 0 59 Rust

`bevy_text`: use `u32`s for line and section indices (#24274)

# Objective

Parley uses `u32`s for its section indices, the conversion to `usize`
serves no purpose.
Line indices can be `u32`s too, text with more than `u32::MAX` lines is
infeasible.

## Solution

Change the section and line indices in `PostionedGlyph` and
`RunGeometry` to use `u32`s.
I
ickshonpe committed
463da0f40095877f723e4b485a6ff7f89b09ca81
Parent: 74d39c6
Committed by GitHub <noreply@github.com> on 5/18/2026, 8:22:50 PM