Skip to content

Commit

Permalink
make default constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharktheone committed Jun 19, 2024
1 parent c88ac46 commit 88d28da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/gosub_typeface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ lazy_static! {
pub static ref FONT_PATH_CACHE: FcFontCache = FcFontCache::build();
}

const ROBOTO_REGULAR: &[u8] = include_bytes!("../../../resources/fonts/Roboto-Regular.ttf");

lazy_static! {
pub static ref BACKUP_FONT: SharedFont = SharedFont {
data: Arc::new(include_bytes!("../../../resources/fonts/Roboto-Regular.ttf").to_vec()),
data: Arc::new(ROBOTO_REGULAR.to_vec()),
ty: FontType::TrueType,
};
}
Expand Down

0 comments on commit 88d28da

Please sign in to comment.