feat: expose the default font bytes (#14406)
# Objective - Enables use cases where third-party crates would want to use the default font as well [see linebender's use](https://github.com/linebender/bevy_vello/pull/66) ## Solution - Uses `include_bytes` macro and make it `pub` --------- Co-authored-by: Spencer C. Imbleau <spencer@imbleau.com> Co-authored-by: BD103 <59022059+BD103@users.noreply.github.com>
This commit is contained in:
parent
d1f4262d7d
commit
d88be59f92
@ -71,6 +71,10 @@ use bevy_render::{
|
|||||||
};
|
};
|
||||||
use bevy_sprite::SpriteSystem;
|
use bevy_sprite::SpriteSystem;
|
||||||
|
|
||||||
|
/// The raw data for the default font used by `bevy_text`
|
||||||
|
#[cfg(feature = "default_font")]
|
||||||
|
pub const DEFAULT_FONT_DATA: &[u8] = include_bytes!("FiraMono-subset.ttf");
|
||||||
|
|
||||||
/// Adds text rendering support to an app.
|
/// Adds text rendering support to an app.
|
||||||
///
|
///
|
||||||
/// When the `bevy_text` feature is enabled with the `bevy` crate, this
|
/// When the `bevy_text` feature is enabled with the `bevy` crate, this
|
||||||
|
Loading…
Reference in New Issue
Block a user