mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
restrict font choices in baosec target
we have a smaller font map, so don't resolve glyphs to fonts that we don't have.
This commit is contained in:
parent
dde034c101
commit
8f48572b9c
1 changed files with 19 additions and 0 deletions
|
|
@ -121,6 +121,7 @@ macro_rules! en_audio_rules {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
|
#[cfg(not(any(feature = "board-baosec", feature = "hosted-baosec")))]
|
||||||
macro_rules! english_rules {
|
macro_rules! english_rules {
|
||||||
($base_style:expr, $emoji_style:expr, $ch:ident) => {
|
($base_style:expr, $emoji_style:expr, $ch:ident) => {
|
||||||
match $base_style($ch) {
|
match $base_style($ch) {
|
||||||
|
|
@ -145,6 +146,24 @@ macro_rules! english_rules {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[macro_export]
|
||||||
|
// Reflect reduced font space on small-memory footprint devices
|
||||||
|
#[cfg(any(feature = "board-baosec", feature = "hosted-baosec"))]
|
||||||
|
macro_rules! english_rules {
|
||||||
|
($base_style:expr, $emoji_style:expr, $ch:ident) => {
|
||||||
|
match $base_style($ch) {
|
||||||
|
Ok(g) => g,
|
||||||
|
_ => match $emoji_style($ch) {
|
||||||
|
Ok(g) => g,
|
||||||
|
_ => match $base_style(REPLACEMENT) {
|
||||||
|
Ok(g) => g,
|
||||||
|
_ => NULL_GLYPH_SPRITE,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
pub use en_audio_rules;
|
pub use en_audio_rules;
|
||||||
pub use english_rules;
|
pub use english_rules;
|
||||||
pub use jp_rules;
|
pub use jp_rules;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue