[bevy_text] Document what happens when font is not specified (#10252)

This commit is contained in:
Stepan Koltsov 2023-10-28 20:55:25 +01:00 committed by GitHub
parent 4b50edc980
commit a4d98f3377
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,6 +187,10 @@ impl From<TextAlignment> for glyph_brush_layout::HorizontalAlign {
#[derive(Clone, Debug, Reflect)]
pub struct TextStyle {
/// If this is not specified, then
/// * if `default_font` feature is enabled (enabled by default in `bevy` crate),
/// `FiraMono-subset.ttf` compiled into the library is used.
/// * otherwise no text will be rendered.
pub font: Handle<Font>,
/// The vertical height of rasterized glyphs in the font atlas in pixels.
///