feat(color): add new font size between DBL & XXL (#7150)

This commit is contained in:
philmoz
2026-03-17 10:40:25 +10:00
committed by GitHub
parent 83bc1e2d82
commit eea12d5769
7 changed files with 2879 additions and 44 deletions
+5 -1
View File
@@ -34,7 +34,8 @@
extern "C" {
// All languages uss the same font for XXL size
// All languages use the same font for LXL & XXL size
extern const etxLz4Font lv_font_en_bold_LXL;
extern const etxLz4Font lv_font_en_bold_XXL;
} // extern "C"
@@ -68,6 +69,7 @@ extern "C" {
{ &lv_font_##x##_L, nullptr, false }, /* FONT_L_INDEX */ \
{ &lv_font_##x##_bold_XL, nullptr, false }, /* FONT_XL_INDEX */ \
{ &lv_font_en_bold_XXL, nullptr, false }, /* FONT_XXL_INDEX */ \
{ &lv_font_en_bold_LXL, nullptr, false }, /* FONT_LXL_INDEX */ \
};
#if defined(TRANSLATIONS_CN)
@@ -201,6 +203,7 @@ extern "C" {
{ &lv_font_##x##_L, nullptr, false }, /* FONT_L_INDEX */ \
{ &lv_font_##x##_bold_XL, nullptr, false }, /* FONT_XL_INDEX */ \
{ &lv_font_en_bold_XXL, nullptr, false }, /* FONT_XXL_INDEX */ \
{ &lv_font_en_bold_LXL, nullptr, false }, /* FONT_LXL_INDEX */ \
};
FONT_TABLE(en);
@@ -452,6 +455,7 @@ static const int8_t FontHeightCorrection[FONTS_COUNT] = {
-3, // L
-5, // XL
-2, // XXL
-2, // LXL
};
const lv_font_t* getFont(LcdFlags flags)
+1
View File
@@ -30,6 +30,7 @@ enum FontIndex {
FONT_L_INDEX,
FONT_XL_INDEX,
FONT_XXL_INDEX,
FONT_LXL_INDEX, // Halfway between XL and XXL added here to avoid affecting scripts
// this one MUST be last
FONTS_COUNT