fix location of font offsets

This commit is contained in:
bunnie 2025-02-24 02:28:34 +08:00
parent 275ae9b96c
commit 2a97d9a827
2 changed files with 2 additions and 2 deletions

View file

@ -187,7 +187,7 @@ const fontmapTemplate = `#![cfg_attr(rustfmt, rustfmt_skip)]
#[cfg(not(feature = "cramium-soc"))]
pub const FONT_BASE: usize = 0x2053_0000;
#[cfg(feature = "cramium-soc")]
pub const FONT_BASE: usize = 0x6001_0000;
pub const FONT_BASE: usize = 0x6004_0000;
{{range $f := .FontDir}}#[cfg(not(feature = "cramium-soc"))]
pub const {{$f.Name}}: usize = 0x{{$f.Len}};

View file

@ -6,7 +6,7 @@
#[cfg(not(feature = "cramium-soc"))]
pub const FONT_BASE: usize = 0x2053_0000;
#[cfg(feature = "cramium-soc")]
pub const FONT_BASE: usize = 0x6001_0000;
pub const FONT_BASE: usize = 0x6004_0000;
#[cfg(not(feature = "cramium-soc"))]
pub const EMOJI_OFFSET: usize = 0x0;