From f4efaf67a4c375f3248863700971cffd8f59233e Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Wed, 27 Mar 2024 09:26:11 +0000 Subject: [PATCH] Add a japanese text rendering example --- agb/examples/text_render.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agb/examples/text_render.rs b/agb/examples/text_render.rs index 350b80a5..e6a60b7d 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/yoster.ttf", 12); +const FONT: Font = include_font!("examples/font/ark-pixel-10px-proportional-ja.ttf", 10); #[agb::entry] fn main(mut gba: agb::Gba) -> ! { @@ -47,7 +47,7 @@ fn main(mut gba: agb::Gba) -> ! { let mut renderer = FONT.render_text((0u16, 3u16)); let mut writer = renderer.writer(1, 2, &mut bg, &mut vram); - writeln!(&mut writer, "Hello, World!").unwrap(); + writeln!(&mut writer, "Hello, World! こんにちは 世界").unwrap(); writeln!(&mut writer, "This is a font rendering example").unwrap(); writer.commit();