bevy/crates/bevy_text/src
sam edelsten 64d57fad08
Add byte information to PositionedGlyph (#17900)
# Objective

Adds information about the byte length and index of a glyph to
`PositionedGlyph`. Useful for text picking, allows for picking with
multi-byte characters. Also adds a `line` field that helps with
converting back and forth from cosmic's `Cursor`.

## Solution

Retrieve the relevant data from cosmic and add it to the glyph in the
text pipeline.

## Testing

`cargo r -p ci`

---

## Migration Guide

`PositionedGlyph::new()` has been removed as there is no longer an
unused field. Create new `PositionedGlyph`s directly.
2025-03-08 16:35:01 +00:00
..
bounds.rs
error.rs Deny derive_more error feature and replace it with thiserror (#16684) 2024-12-06 17:03:55 +00:00
FiraMono-subset.ttf
font_atlas_set.rs Move hashbrown and foldhash out of bevy_utils (#17460) 2025-01-23 16:46:08 +00:00
font_atlas.rs Allowed creating uninitialized images (for use as storage textures) (#17760) 2025-02-10 22:22:07 +00:00
font_loader.rs Deny derive_more error feature and replace it with thiserror (#16684) 2024-12-06 17:03:55 +00:00
font.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
glyph.rs Add byte information to PositionedGlyph (#17900) 2025-03-08 16:35:01 +00:00
lib.rs Cold Specialization (#17567) 2025-02-05 18:31:20 +00:00
pipeline.rs Add byte information to PositionedGlyph (#17900) 2025-03-08 16:35:01 +00:00
text2d.rs Fix Component require() IDE integration (#18165) 2025-03-06 02:44:47 +00:00
text_access.rs Relationships (non-fragmenting, one-to-many) (#17398) 2025-01-18 22:20:30 +00:00
text.rs Remove ChildOf::get and Deref impl (#18080) 2025-02-27 23:11:03 +00:00