From 782e94aa65b6742ca1a796da2605aca6d1f8d3d6 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 13 Jun 2024 22:06:04 +0800 Subject: [PATCH] add mappings for additional fonts in cramium target --- services/graphics-server/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/graphics-server/src/main.rs b/services/graphics-server/src/main.rs index 230317bc6..8fdd830c7 100644 --- a/services/graphics-server/src/main.rs +++ b/services/graphics-server/src/main.rs @@ -119,6 +119,10 @@ fn map_fonts() -> MemoryRange { .store((fontregion.as_ptr() as usize + fontmap::MONO_OFFSET as usize) as u32, Ordering::SeqCst); blitstr2::fonts::tall::GLYPH_LOCATION .store((fontregion.as_ptr() as usize + fontmap::TALL_OFFSET as usize) as u32, Ordering::SeqCst); + blitstr2::fonts::regular::GLYPH_LOCATION + .store((fontregion.as_ptr() as usize + fontmap::REGULAR_OFFSET as usize) as u32, Ordering::SeqCst); + blitstr2::fonts::small::GLYPH_LOCATION + .store((fontregion.as_ptr() as usize + fontmap::SMALL_OFFSET as usize) as u32, Ordering::SeqCst); fontregion }