From 37d35b8e2794a6cbca6cd8dba7743eb254af9745 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 29 Jan 2024 03:34:03 +0800 Subject: [PATCH] add small memory option for fonts to loader --- loader/src/fonts.rs | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/loader/src/fonts.rs b/loader/src/fonts.rs index 1a08073d7..b928afe84 100644 --- a/loader/src/fonts.rs +++ b/loader/src/fonts.rs @@ -3,12 +3,34 @@ // The order of these modules affects the link order in the loader, which is referred to in the graphics engine. // To make changes, see /services/graphics-server/src/blitstr2/codegen/main.go +#[cfg(not(feature = "cramium-soc"))] pub mod emoji; +#[cfg(not(feature = "cramium-soc"))] pub mod zh; +#[cfg(not(feature = "cramium-soc"))] pub mod ja; +#[cfg(not(feature = "cramium-soc"))] pub mod kr; +#[cfg(not(feature = "cramium-soc"))] pub mod bold; +#[cfg(not(feature = "cramium-soc"))] pub mod mono; +#[cfg(not(feature = "cramium-soc"))] pub mod regular; +#[cfg(not(feature = "cramium-soc"))] pub mod tall; -pub mod small; \ No newline at end of file +#[cfg(not(feature = "cramium-soc"))] +pub mod small; + +#[cfg(feature = "cramium-soc")] +pub mod emoji; +#[cfg(feature = "cramium-soc")] +pub mod bold; +#[cfg(feature = "cramium-soc")] +pub mod mono; +#[cfg(feature = "cramium-soc")] +pub mod regular; +#[cfg(feature = "cramium-soc")] +pub mod tall; +#[cfg(feature = "cramium-soc")] +pub mod small;