feat(color): Compress font data with LZ4 (#4366)

This commit is contained in:
philmoz
2023-12-09 13:04:29 +10:00
committed by GitHub
parent b4f5ed5720
commit ecd50cf5e0
45 changed files with 98766 additions and 273255 deletions
+6 -43
View File
@@ -394,78 +394,41 @@
#if defined(TRANSLATIONS_CN)
#define LV_FONT_CUSTOM_DECLARE \
LV_FONT_DECLARE(lv_font_noto_cn_9) \
LV_FONT_DECLARE(lv_font_noto_cn_13) \
LV_FONT_DECLARE(lv_font_noto_cn_16) \
LV_FONT_DECLARE(lv_font_noto_cn_24) \
LV_FONT_DECLARE(lv_font_noto_cn_bold_16) \
LV_FONT_DECLARE(lv_font_noto_cn_bold_32) \
LV_FONT_DECLARE(lv_font_noto_cn_bold_64)
LV_FONT_DECLARE(lv_font_noto_cn_16)
/*Always set a default font*/
#define LV_FONT_DEFAULT &lv_font_noto_cn_16
#elif defined(TRANSLATIONS_TW)
#define LV_FONT_CUSTOM_DECLARE \
LV_FONT_DECLARE(lv_font_noto_tw_9) \
LV_FONT_DECLARE(lv_font_noto_tw_13) \
LV_FONT_DECLARE(lv_font_noto_tw_16) \
LV_FONT_DECLARE(lv_font_noto_tw_24) \
LV_FONT_DECLARE(lv_font_noto_tw_bold_16) \
LV_FONT_DECLARE(lv_font_noto_tw_bold_32) \
LV_FONT_DECLARE(lv_font_noto_tw_bold_64)
LV_FONT_DECLARE(lv_font_noto_tw_16)
/*Always set a default font*/
#define LV_FONT_DEFAULT &lv_font_noto_tw_16
#elif defined(TRANSLATIONS_RU)
#define LV_FONT_CUSTOM_DECLARE \
LV_FONT_DECLARE(lv_font_arimo_ru_9) \
LV_FONT_DECLARE(lv_font_arimo_ru_13) \
LV_FONT_DECLARE(lv_font_arimo_ru_16) \
LV_FONT_DECLARE(lv_font_arimo_ru_24) \
LV_FONT_DECLARE(lv_font_arimo_ru_bold_16) \
LV_FONT_DECLARE(lv_font_arimo_ru_bold_32) \
LV_FONT_DECLARE(lv_font_arimo_ru_bold_64)
LV_FONT_DECLARE(lv_font_arimo_ru_16)
/*Always set a default font*/
#define LV_FONT_DEFAULT &lv_font_arimo_ru_16
#elif defined(TRANSLATIONS_JP)
#define LV_FONT_CUSTOM_DECLARE \
LV_FONT_DECLARE(lv_font_noto_jp_9) \
LV_FONT_DECLARE(lv_font_noto_jp_13) \
LV_FONT_DECLARE(lv_font_noto_jp_16) \
LV_FONT_DECLARE(lv_font_noto_jp_24) \
LV_FONT_DECLARE(lv_font_noto_jp_bold_16) \
LV_FONT_DECLARE(lv_font_noto_jp_bold_32) \
LV_FONT_DECLARE(lv_font_noto_jp_bold_64)
LV_FONT_DECLARE(lv_font_noto_jp_16)
/*Always set a default font*/
#define LV_FONT_DEFAULT &lv_font_noto_jp_16
#elif defined(TRANSLATIONS_HE)
#define LV_FONT_CUSTOM_DECLARE \
LV_FONT_DECLARE(lv_font_arimo_he_9) \
LV_FONT_DECLARE(lv_font_arimo_he_13) \
LV_FONT_DECLARE(lv_font_arimo_he_16) \
LV_FONT_DECLARE(lv_font_arimo_he_24) \
LV_FONT_DECLARE(lv_font_arimo_he_bold_16) \
LV_FONT_DECLARE(lv_font_arimo_he_bold_32) \
LV_FONT_DECLARE(lv_font_arimo_he_bold_64)
LV_FONT_DECLARE(lv_font_arimo_he_16)
/*Always set a default font*/
#define LV_FONT_DEFAULT &lv_font_arimo_he_16
#else
#define LV_FONT_CUSTOM_DECLARE \
LV_FONT_DECLARE(lv_font_roboto_9) \
LV_FONT_DECLARE(lv_font_roboto_13) \
LV_FONT_DECLARE(lv_font_roboto_16) \
LV_FONT_DECLARE(lv_font_roboto_24) \
LV_FONT_DECLARE(lv_font_roboto_bold_16) \
LV_FONT_DECLARE(lv_font_roboto_bold_32) \
LV_FONT_DECLARE(lv_font_roboto_bold_64)
LV_FONT_DECLARE(lv_font_roboto_16)
/*Always set a default font*/
#define LV_FONT_DEFAULT &lv_font_roboto_16