mirror of
https://github.com/bevyengine/bevy
synced 2024-12-24 03:53:06 +00:00
21da0b72ae
# Objective - Fix https://github.com/bevyengine/bevy/issues/15366. `cosmic-text` buffers refuse to function if the `Metrics` font size is zero. ## Solution - Trick `cosmic-text` into clearing its internal buffer when the largest font size of segments is zero by sending it no spans and a tiny `Metrics::font_size` and `Metrics::line_height`. ## Testing - [x] Fixes @brandon-reinhart 's bug. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |