mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 20:23:28 +00:00
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
1 changed files with 4 additions and 0 deletions
|
@ -71,6 +71,10 @@ use bevy_render::{
|
|||
};
|
||||
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.
|
||||
///
|
||||
/// When the `bevy_text` feature is enabled with the `bevy` crate, this
|
||||
|
|
Loading…
Reference in a new issue