bevy/crates/bevy_text/src
Sludge 1edec4d890
Remove #[cfg] from the From impls of TextSection (#14439)
# Objective

- Not including bevy's default font shouldn't result in code not
compiling anymore.
- Games may want to load their own default font into the default
`Handle<Font>` and not include bevy's default font, but still use these
convenience impls (https://github.com/bevyengine/bevy/issues/12192
currently makes this a bit inconvenient, but it does work).

## Solution

- Include these impls unconditionally.
- Slightly expand the comment on the `font` field to indicate that a
custom font can be used to override the default font.
- (drive-by: add `#[reflect(Default)]` on `TextSection`, since it was
missing a way to construct it via reflection)
2024-07-26 17:11:12 +00:00
..
bounds.rs Cosmic text (#10193) 2024-07-04 20:41:08 +00:00
error.rs Cosmic text (#10193) 2024-07-04 20:41:08 +00:00
FiraMono-subset.ttf add a default font (#8445) 2023-04-21 22:30:18 +00:00
font.rs Cosmic text (#10193) 2024-07-04 20:41:08 +00:00
font_atlas.rs Fix intra-doc links and make CI test them (#14076) 2024-07-11 13:08:31 +00:00
font_atlas_set.rs Cosmic text (#10193) 2024-07-04 20:41:08 +00:00
font_loader.rs Fix intra-doc links and make CI test them (#14076) 2024-07-11 13:08:31 +00:00
glyph.rs Fix intra-doc links and make CI test them (#14076) 2024-07-11 13:08:31 +00:00
lib.rs feat: expose the default font bytes (#14406) 2024-07-22 19:09:39 +00:00
pipeline.rs Fix intra-doc links and make CI test them (#14076) 2024-07-11 13:08:31 +00:00
text.rs Remove #[cfg] from the From impls of TextSection (#14439) 2024-07-26 17:11:12 +00:00
text2d.rs Cosmic text (#10193) 2024-07-04 20:41:08 +00:00