Enable compression for ui fonts

Add --compress flag to font generation command and regenerate the font bitmap data with compression enabled. This reduces the bitmap array size while maintaining the same 2-bit mode and character intervals.
This commit is contained in:
Justin Mitchell
2026-07-05 19:46:43 -04:00
parent 62448b3c08
commit 72b99a2a9c
7 changed files with 9157 additions and 17450 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -46,7 +46,7 @@ for size in ${UI_FONT_SIZES[@]}; do
# partial edge coverage dithers (GfxRenderer renderCharImpl), so UI text is
# anti-aliased on 1-bit panels and blends properly in grayscale passes.
python fontconvert.py $font_name $size $font_path $hebrew_path $viet_path \
--2bit --additional-intervals 0x05D0,0x05EA > $output_path
--2bit --compress --additional-intervals 0x05D0,0x05EA > $output_path
echo "Generated $output_path"
done
done
@@ -54,7 +54,7 @@ done
python fontconvert.py notosans_8_regular 8 \
../builtinFonts/source/NotoSans/NotoSans-Regular.ttf \
../builtinFonts/source/NotoSansHebrew/NotoSansHebrew-Regular.ttf \
--2bit --additional-intervals 0x05D0,0x05EA > ../builtinFonts/notosans_8_regular.h
--2bit --compress --additional-intervals 0x05D0,0x05EA > ../builtinFonts/notosans_8_regular.h
echo ""
echo "Running compression verification..."