# 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. |
||
|---|---|---|
| .. | ||
| bounds.rs | ||
| error.rs | ||
| FiraMono-subset.ttf | ||
| font_atlas_set.rs | ||
| font_atlas.rs | ||
| font_loader.rs | ||
| font.rs | ||
| glyph.rs | ||
| lib.rs | ||
| pipeline.rs | ||
| text2d.rs | ||
| text.rs | ||