diff --git a/agb/examples/text_render.rs b/agb/examples/text_render.rs index e6a60b7d..741e3d95 100644 --- a/agb/examples/text_render.rs +++ b/agb/examples/text_render.rs @@ -11,7 +11,7 @@ use agb::{ use core::fmt::Write; -const FONT: Font = include_font!("examples/font/ark-pixel-10px-proportional-ja.ttf", 10); +static FONT: Font = include_font!("examples/font/ark-pixel-10px-proportional-ja.ttf", 10); #[agb::entry] fn main(mut gba: agb::Gba) -> ! { diff --git a/agb/src/display/font.rs b/agb/src/display/font.rs index cb0c7a04..d725e4b1 100644 --- a/agb/src/display/font.rs +++ b/agb/src/display/font.rs @@ -279,7 +279,7 @@ impl<'a, 'b> TextRenderer<'b> { mod tests { use super::*; use crate::display::tiled::{TileFormat, TiledMap}; - const FONT: Font = crate::include_font!("examples/font/yoster.ttf", 12); + static FONT: Font = crate::include_font!("examples/font/yoster.ttf", 12); #[test_case] fn font_display(gba: &mut crate::Gba) {