bevy/crates/bevy_text
Rob Parrett 784a9d36bd
Add warning for font sizes <= 0.0 (#17501)
# Objective

Alternative to #9660, which is outdated since "required components"
landed.

Fixes #9655

## Solution

This is a different approach than the linked PR, slotting the warning
into an existing check for zero or negative font sizes in the text
pipeline.

## Testing

Replaced a font size with `0.0` in `examples/ui/text.rs`.

```
2025-01-22T23:26:08.239688Z  INFO bevy_winit::system: Creating new window App (0v1)
2025-01-22T23:26:08.617505Z  WARN bevy_text::pipeline: Text span 10v1 has a font size <= 0.0. Nothing will be displayed.
```
2025-01-23 02:43:59 +00:00
..
src Add warning for font sizes <= 0.0 (#17501) 2025-01-23 02:43:59 +00:00
Cargo.toml Add warning for font sizes <= 0.0 (#17501) 2025-01-23 02:43:59 +00:00
README.md Add README.md to all crates (#13184) 2024-05-02 18:56:00 +00:00

Bevy Text

License Crates.io Downloads Docs Discord