Skip to content

Commit 3a8f222

Browse files
authored
refactor(color): UI layout logic to better handle different screen sizes and orientations (#6210)
1 parent 2689929 commit 3a8f222

File tree

422 files changed

+385005
-389843
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

422 files changed

+385005
-389843
lines changed
115 Bytes
4 Bytes
-499 Bytes
-465 Bytes
155 Bytes
154 Bytes
171 Bytes
161 Bytes
295 Bytes
113 Bytes
72 Bytes
34 Bytes
31 Bytes
56 Bytes
1.1 KB
8.25 KB
101 Bytes

radio/src/fonts/lvgl/lrg/lv_font_bl.c

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*******************************************************************************
22
* Size: 24 px
33
* Bpp: 1
4-
* Opts: --no-prefilter --bpp 1 --size 24 --no-compress --font ../Roboto/Roboto-Regular.ttf -r 0x20-0x7F --font ../../thirdparty/lvgl/scripts/built_in_font/FontAwesome5-Solid+Brands+Regular.woff -r 61671,63650,63426,61453,61787,61452,61931,62087 --format lvgl -o lrg/lv_font_bl.c --force-fast-kern-format
4+
* Opts: --no-prefilter --bpp 1 --size 24 --no-compress --font ../Roboto/Roboto-Regular.ttf -r 0x20-0x7F --font ../../thirdparty/lvgl/scripts/built_in_font/FontAwesome5-Solid+Brands+Regular.woff -r 61671,63650,63426,61453,61787,61452,61931,62087 --format lvgl -o lrg/lv_font_bl.c --force-fast-kern-format --no-compress
55
******************************************************************************/
66

77
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
@@ -941,12 +941,9 @@ static const lv_font_fmt_txt_kern_classes_t kern_classes =
941941
* ALL CUSTOM DATA
942942
*--------------------*/
943943

944-
#if LVGL_VERSION_MAJOR == 8
944+
#if LV_VERSION_CHECK(8, 0, 0)
945945
/*Store all the custom data of the font*/
946946
static lv_font_fmt_txt_glyph_cache_t cache;
947-
#endif
948-
949-
#if LVGL_VERSION_MAJOR >= 8
950947
static const lv_font_fmt_txt_dsc_t font_dsc = {
951948
#else
952949
static lv_font_fmt_txt_dsc_t font_dsc = {
@@ -960,19 +957,18 @@ static lv_font_fmt_txt_dsc_t font_dsc = {
960957
.bpp = 1,
961958
.kern_classes = 1,
962959
.bitmap_format = 0,
963-
#if LVGL_VERSION_MAJOR == 8
960+
#if LV_VERSION_CHECK(8, 0, 0)
964961
.cache = &cache
965962
#endif
966963
};
967964

968965

969-
970966
/*-----------------
971967
* PUBLIC FONT
972968
*----------------*/
973969

974970
/*Initialize a public general font descriptor*/
975-
#if LVGL_VERSION_MAJOR >= 8
971+
#if LV_VERSION_CHECK(8, 0, 0)
976972
const lv_font_t lv_font_bl = {
977973
#else
978974
lv_font_t lv_font_bl = {
@@ -988,11 +984,7 @@ lv_font_t lv_font_bl = {
988984
.underline_position = -2,
989985
.underline_thickness = 1,
990986
#endif
991-
.dsc = &font_dsc, /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
992-
#if LV_VERSION_CHECK(8, 2, 0) || LVGL_VERSION_MAJOR >= 9
993-
.fallback = NULL,
994-
#endif
995-
.user_data = NULL,
987+
.dsc = &font_dsc /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
996988
};
997989

998990

radio/src/fonts/lvgl/lrg/lv_font_cn_L.c

Lines changed: 9054 additions & 9104 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_cn_STD.c

Lines changed: 2310 additions & 2469 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_cn_XS.c

Lines changed: 5095 additions & 5145 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_cn_XXS.c

Lines changed: 3288 additions & 3318 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_cn_bold_STD.c

Lines changed: 6863 additions & 6928 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_cn_bold_XL.c

Lines changed: 13303 additions & 13412 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_cn_bold_XXL.c

Lines changed: 0 additions & 1965 deletions
This file was deleted.

radio/src/fonts/lvgl/lrg/lv_font_en_L.c

Lines changed: 1156 additions & 1156 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_en_STD.c

Lines changed: 125 additions & 133 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_en_XS.c

Lines changed: 818 additions & 817 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_en_XXS.c

Lines changed: 623 additions & 623 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_en_bold_STD.c

Lines changed: 1109 additions & 1109 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_en_bold_XL.c

Lines changed: 1622 additions & 1623 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_en_bold_XXL.c

Lines changed: 1315 additions & 1315 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_he_L.c

Lines changed: 1002 additions & 984 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_he_STD.c

Lines changed: 1551 additions & 1452 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_he_XS.c

Lines changed: 886 additions & 861 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_he_XXS.c

Lines changed: 586 additions & 561 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_he_bold_STD.c

Lines changed: 1108 additions & 1101 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_he_bold_XL.c

Lines changed: 1080 additions & 1091 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_he_bold_XXL.c

Lines changed: 0 additions & 1811 deletions
This file was deleted.

radio/src/fonts/lvgl/lrg/lv_font_jp_L.c

Lines changed: 5976 additions & 6029 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_jp_STD.c

Lines changed: 2278 additions & 2509 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_jp_XS.c

Lines changed: 3518 additions & 3573 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_jp_XXS.c

Lines changed: 2290 additions & 2323 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_jp_bold_STD.c

Lines changed: 4543 additions & 4609 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_jp_bold_XL.c

Lines changed: 8224 additions & 8339 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_jp_bold_XXL.c

Lines changed: 0 additions & 1965 deletions
This file was deleted.

radio/src/fonts/lvgl/lrg/lv_font_ko_L.c

Lines changed: 5002 additions & 5028 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_ko_STD.c

Lines changed: 1979 additions & 2041 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_ko_XS.c

Lines changed: 2994 additions & 2996 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_ko_XXS.c

Lines changed: 1743 additions & 1754 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_ko_bold_STD.c

Lines changed: 3889 additions & 3919 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_ko_bold_XL.c

Lines changed: 7391 additions & 7487 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_ko_bold_XXL.c

Lines changed: 0 additions & 1950 deletions
This file was deleted.

radio/src/fonts/lvgl/lrg/lv_font_ru_L.c

Lines changed: 1334 additions & 1204 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_ru_STD.c

Lines changed: 1989 additions & 1678 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_ru_XS.c

Lines changed: 1061 additions & 991 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_ru_XXS.c

Lines changed: 687 additions & 635 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_ru_bold_STD.c

Lines changed: 1326 additions & 1246 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_ru_bold_XL.c

Lines changed: 1492 additions & 1348 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_ru_bold_XXL.c

Lines changed: 0 additions & 1811 deletions
This file was deleted.

radio/src/fonts/lvgl/lrg/lv_font_tw_L.c

Lines changed: 10937 additions & 10989 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_tw_STD.c

Lines changed: 2364 additions & 2523 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_tw_XS.c

Lines changed: 5585 additions & 5634 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_tw_XXS.c

Lines changed: 3401 additions & 3429 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_tw_bold_STD.c

Lines changed: 7216 additions & 7280 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_tw_bold_XL.c

Lines changed: 14425 additions & 14534 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_tw_bold_XXL.c

Lines changed: 0 additions & 1965 deletions
This file was deleted.

radio/src/fonts/lvgl/lrg/lv_font_ua_L.c

Lines changed: 1319 additions & 1188 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_ua_STD.c

Lines changed: 1957 additions & 1660 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_ua_XS.c

Lines changed: 1009 additions & 938 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_ua_XXS.c

Lines changed: 718 additions & 665 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_ua_bold_STD.c

Lines changed: 1325 additions & 1244 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_ua_bold_XL.c

Lines changed: 1468 additions & 1321 deletions
Large diffs are not rendered by default.

radio/src/fonts/lvgl/lrg/lv_font_ua_bold_XXL.c

Lines changed: 0 additions & 1811 deletions
This file was deleted.

radio/src/fonts/lvgl/make_fonts.sh

Lines changed: 84 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,25 @@ ARROWS_FONT="EdgeTX/OpenArrow-Regular.woff"
3030
# 0x80: right, 0x81: left, 0x82: up, 0x83: down
3131
ARROWS="0x21E8=>0x80,0x21E6=>0x81,0x21E7=>0x82,0x21E9=>0x83"
3232

33+
LATIN_FONT="Roboto/Roboto-Regular.ttf"
34+
LATIN_FONT_BOLD="Roboto/Roboto-Bold.ttf"
35+
3336
function make_font() {
3437
local name=$1
35-
local ttf=$2
36-
local size=$3
37-
local sfx=$4
38-
local dir=$5
39-
local chars=$6
40-
local arg=$7
38+
local latin_ttf=$2
39+
local ttf=$3
40+
local size=$4
41+
local sfx=$5
42+
local dir=$6
43+
local chars=$7
4144

4245
lv_font_conv --no-prefilter --bpp 4 --size ${size} \
43-
--font ${TTF_DIR}${ttf} -r ${ASCII},${DEGREE},${BULLET},${COMPARE}${chars} \
46+
--font ${TTF_DIR}${latin_ttf} -r ${ASCII},${DEGREE},${BULLET},${COMPARE} \
47+
--font ${TTF_DIR}${ttf} -r ${chars} \
4448
--font EdgeTX/extra.ttf -r ${EXTRA_SYM} \
4549
--font ${ARROWS_FONT} -r ${ARROWS} \
4650
--font ${SYMBOLS_FONT} -r ${SYMBOLS} \
47-
--format lvgl -o ${dir}/lv_font_${name}_${sfx}.c --force-fast-kern-format ${arg}
51+
--format lvgl -o ${dir}/lv_font_${name}_${sfx}.c --force-fast-kern-format --no-compress
4852
}
4953

5054
function compress_font() {
@@ -56,50 +60,66 @@ function compress_font() {
5660

5761
function make_font_lz4() {
5862
local name=$1
59-
local ttf=$2
60-
local size=$3
61-
local sfx=$4
62-
local dir=$5
63-
local chars=$6
64-
local arg=$7
63+
local latin_ttf=$2
64+
local ttf=$3
65+
local size=$4
66+
local sfx=$5
67+
local dir=$6
68+
local chars=$7
6569

6670
lv_font_conv --no-prefilter --bpp 4 --size ${size} \
67-
--font ${TTF_DIR}${ttf} -r ${ASCII},${DEGREE},${BULLET},${COMPARE}${chars} \
71+
--font ${TTF_DIR}${latin_ttf} -r ${ASCII},${DEGREE},${BULLET},${COMPARE} \
72+
--font ${TTF_DIR}${ttf} -r ${chars} \
6873
--font EdgeTX/extra.ttf -r ${EXTRA_SYM} \
6974
--font ${ARROWS_FONT} -r ${ARROWS} \
7075
--font ${SYMBOLS_FONT} -r ${SYMBOLS} \
71-
--format lvgl -o lv_font.inc --force-fast-kern-format ${arg}
76+
--format lvgl -o lv_font.inc --force-fast-kern-format --no-compress
7277
compress_font ${dir}/lv_font_${name}_${sfx}
7378
}
7479

7580
function make_font_w_extra_sym() {
7681
local name=$1
77-
local ttf=$2
78-
local size=$3
79-
local sfx=$4
80-
local dir=$5
81-
local chars=$6
82-
local arg=$7
82+
local latin_ttf=$2
83+
local ttf=$3
84+
local size=$4
85+
local sfx=$5
86+
local dir=$6
87+
local chars=$7
8388

8489
lv_font_conv --no-prefilter --bpp 4 --size ${size} \
85-
--font ${TTF_DIR}${ttf} -r ${ASCII},${DEGREE}${chars} \
90+
--font ${TTF_DIR}${latin_ttf} -r ${ASCII},${DEGREE} \
91+
--font ${TTF_DIR}${ttf} -r ${chars} \
8692
--font EdgeTX/extra.ttf -r ${EXTRA_SYM} \
87-
--format lvgl -o lv_font.inc --force-fast-kern-format ${arg}
93+
--format lvgl -o lv_font.inc --force-fast-kern-format --no-compress
8894
compress_font ${dir}/lv_font_${name}_${sfx}
8995
}
9096

9197
function make_font_no_sym() {
9298
local name=$1
93-
local ttf=$2
99+
local latin_ttf=$2
100+
local ttf=$3
101+
local size=$4
102+
local sfx=$5
103+
local dir=$6
104+
local chars=$7
105+
106+
lv_font_conv --no-prefilter --bpp 4 --size ${size} \
107+
--font ${TTF_DIR}${latin_ttf} -r ${ASCII},${DEGREE} \
108+
--font ${TTF_DIR}${ttf} -r ${chars} \
109+
--format lvgl -o lv_font.inc --force-fast-kern-format --no-compress
110+
compress_font ${dir}/lv_font_${name}_${sfx}
111+
}
112+
113+
function make_font_no_sym_no_trans() {
114+
local name=$1
115+
local latin_ttf=$2
94116
local size=$3
95117
local sfx=$4
96118
local dir=$5
97-
local chars=$6
98-
local arg=$7
99119

100120
lv_font_conv --no-prefilter --bpp 4 --size ${size} \
101-
--font ${TTF_DIR}${ttf} -r ${ASCII},${DEGREE}${chars} \
102-
--format lvgl -o lv_font.inc --force-fast-kern-format ${arg}
121+
--font ${TTF_DIR}${latin_ttf} -r ${ASCII},${DEGREE} \
122+
--format lvgl -o lv_font.inc --force-fast-kern-format --no-compress
103123
compress_font ${dir}/lv_font_${name}_${sfx}
104124
}
105125

@@ -116,7 +136,7 @@ function make_bootloader_font() {
116136
lv_font_conv --no-prefilter --bpp 1 --size ${size} --no-compress \
117137
--font ${TTF_DIR}${ttf} -r ${ASCII} \
118138
--font ${SYMBOLS_FONT} -r ${BL_SYMBOLS} \
119-
--format lvgl -o ${dir}/lv_font_${name}.c --force-fast-kern-format
139+
--format lvgl -o ${dir}/lv_font_${name}.c --force-fast-kern-format --no-compress
120140
}
121141

122142
function make_font_set() {
@@ -125,47 +145,49 @@ function make_font_set() {
125145
local ttf_bold=$3
126146
local chars=$4
127147

128-
make_font_lz4 "${name}" "${ttf_normal}" 9 "XXS" "std" ${chars} --no-compress
129-
make_font_lz4 "${name}" "${ttf_normal}" 13 "XS" "std" ${chars} --no-compress
130-
make_font "${name}" "${ttf_normal}" 16 "STD" "std" ${chars} --no-compress
131-
make_font_lz4 "${name}_bold" "${ttf_bold}" 16 "STD" "std" ${chars} --no-compress
132-
make_font_w_extra_sym "${name}" "${ttf_normal}" 24 "L" "std" ${chars} --no-compress
133-
make_font_no_sym "${name}_bold" "${ttf_bold}" 32 "XL" "std" ${chars} --no-compress
134-
make_font_no_sym "${name}_bold" "${ttf_bold}" 64 "XXL" "std" "" --no-compress
148+
make_font_lz4 "${name}" ${LATIN_FONT} "${ttf_normal}" 9 "XXS" "std" ${chars}
149+
make_font_lz4 "${name}" ${LATIN_FONT} "${ttf_normal}" 13 "XS" "std" ${chars}
150+
make_font "${name}" ${LATIN_FONT} "${ttf_normal}" 16 "STD" "std" ${chars}
151+
make_font_lz4 "${name}_bold" ${LATIN_FONT_BOLD} "${ttf_bold}" 16 "STD" "std" ${chars}
152+
make_font_w_extra_sym "${name}" ${LATIN_FONT} "${ttf_normal}" 24 "L" "std" ${chars}
153+
make_font_no_sym "${name}_bold" ${LATIN_FONT_BOLD} "${ttf_bold}" 32 "XL" "std" ${chars}
135154

136155
# 320x240 LCD fonts
137-
make_font_lz4 "${name}" "${ttf_normal}" 8 "XXS" "sml" ${chars} --no-compress
138-
make_font_lz4 "${name}" "${ttf_normal}" 9 "XS" "sml" ${chars} --no-compress
139-
make_font "${name}" "${ttf_normal}" 11 "STD" "sml" ${chars} --no-compress
140-
make_font_lz4 "${name}_bold" "${ttf_bold}" 11 "STD" "sml" ${chars} --no-compress
141-
make_font_w_extra_sym "${name}" "${ttf_normal}" 15 "L" "sml" ${chars} --no-compress
142-
make_font_no_sym "${name}_bold" "${ttf_bold}" 20 "XL" "sml" ${chars} --no-compress
143-
make_font_no_sym "${name}_bold" "${ttf_bold}" 40 "XXL" "sml" "" --no-compress
156+
make_font_lz4 "${name}" ${LATIN_FONT} "${ttf_normal}" 8 "XXS" "sml" ${chars}
157+
make_font_lz4 "${name}" ${LATIN_FONT} "${ttf_normal}" 10 "XS" "sml" ${chars}
158+
make_font "${name}" ${LATIN_FONT} "${ttf_normal}" 13 "STD" "sml" ${chars}
159+
make_font_lz4 "${name}_bold" ${LATIN_FONT_BOLD} "${ttf_bold}" 13 "STD" "sml" ${chars}
160+
make_font_w_extra_sym "${name}" ${LATIN_FONT} "${ttf_normal}" 19 "L" "sml" ${chars}
161+
make_font_no_sym "${name}_bold" ${LATIN_FONT_BOLD} "${ttf_bold}" 25 "XL" "sml" ${chars}
144162

145163
# 800x480 LCD fonts
146-
make_font_lz4 "${name}" "${ttf_normal}" 13 "XXS" "lrg" ${chars} --no-compress
147-
make_font_lz4 "${name}" "${ttf_normal}" 19 "XS" "lrg" ${chars} --no-compress
148-
make_font "${name}" "${ttf_normal}" 24 "STD" "lrg" ${chars} --no-compress
149-
make_font_lz4 "${name}_bold" "${ttf_bold}" 24 "STD" "lrg" ${chars} --no-compress
150-
make_font_w_extra_sym "${name}" "${ttf_normal}" 36 "L" "lrg" ${chars} --no-compress
151-
make_font_no_sym "${name}_bold" "${ttf_bold}" 48 "XL" "lrg" ${chars} --no-compress
152-
make_font_no_sym "${name}_bold" "${ttf_bold}" 96 "XXL" "lrg" "" --no-compress
164+
make_font_lz4 "${name}" ${LATIN_FONT} "${ttf_normal}" 13 "XXS" "lrg" ${chars}
165+
make_font_lz4 "${name}" ${LATIN_FONT} "${ttf_normal}" 19 "XS" "lrg" ${chars}
166+
make_font "${name}" ${LATIN_FONT} "${ttf_normal}" 24 "STD" "lrg" ${chars}
167+
make_font_lz4 "${name}_bold" ${LATIN_FONT_BOLD} "${ttf_bold}" 24 "STD" "lrg" ${chars}
168+
make_font_w_extra_sym "${name}" ${LATIN_FONT} "${ttf_normal}" 36 "L" "lrg" ${chars}
169+
make_font_no_sym "${name}_bold" ${LATIN_FONT_BOLD} "${ttf_bold}" 48 "XL" "lrg" ${chars}
153170
}
154171

155172
# Bootloader font
156-
make_bootloader_font "bl" "Roboto/Roboto-Regular.ttf" 16 "std" # 480x272, 480x320, 320x480
157-
make_bootloader_font "bl" "Roboto/Roboto-Regular.ttf" 11 "sml" # 320x240
158-
make_bootloader_font "bl" "Roboto/Roboto-Regular.ttf" 24 "lrg" # 800x480
173+
make_bootloader_font "bl" ${LATIN_FONT} 16 "std" # 480x272, 480x320, 320x480
174+
make_bootloader_font "bl" ${LATIN_FONT} 14 "sml" # 320x240
175+
make_bootloader_font "bl" ${LATIN_FONT} 24 "lrg" # 800x480
176+
177+
# XXL fonts (no translation chars)
178+
make_font_no_sym_no_trans "en_bold" ${LATIN_FONT_BOLD} 64 "XXL" "std"
179+
make_font_no_sym_no_trans "en_bold" ${LATIN_FONT_BOLD} 50 "XXL" "sml"
180+
make_font_no_sym_no_trans "en_bold" ${LATIN_FONT_BOLD} 96 "XXL" "lrg"
159181

160182
# Language fonts
161-
make_font_set "en" "Roboto/Roboto-Regular.ttf" "Roboto/Roboto-Bold.ttf" ",${LATIN1}"
162-
make_font_set "tw" "Noto/NotoSansCJKsc-Regular.otf" "Noto/NotoSansCJKsc-Bold.otf" ",${TW_SYMBOLS}"
163-
make_font_set "cn" "Noto/NotoSansCJKsc-Regular.otf" "Noto/NotoSansCJKsc-Bold.otf" ",${CN_SYMBOLS}"
164-
make_font_set "jp" "Noto/NotoSansCJKsc-Regular.otf" "Noto/NotoSansCJKsc-Bold.otf" ",${JP_SYMBOLS}"
165-
make_font_set "he" "Arimo/Arimo-Regular.ttf" "Arimo/Arimo-Bold.ttf" ",${HE_SYMBOLS}"
166-
make_font_set "ru" "Arimo/Arimo-Regular.ttf" "Arimo/Arimo-Bold.ttf" ",${RU_SYMBOLS}"
167-
make_font_set "ua" "Arimo/Arimo-Regular.ttf" "Arimo/Arimo-Bold.ttf" ",${UA_SYMBOLS}"
168-
make_font_set "ko" "Nanum/NanumBarunpenR.ttf" "Nanum/NanumBarunpenB.ttf" ",${KO_SYMBOLS}"
183+
make_font_set "en" ${LATIN_FONT} ${LATIN_FONT_BOLD} "${LATIN1}"
184+
make_font_set "tw" "Noto/NotoSansCJKsc-Regular.otf" "Noto/NotoSansCJKsc-Bold.otf" "${TW_SYMBOLS}"
185+
make_font_set "cn" "Noto/NotoSansCJKsc-Regular.otf" "Noto/NotoSansCJKsc-Bold.otf" "${CN_SYMBOLS}"
186+
make_font_set "jp" "Noto/NotoSansCJKsc-Regular.otf" "Noto/NotoSansCJKsc-Bold.otf" "${JP_SYMBOLS}"
187+
make_font_set "he" "Arimo/Arimo-Regular.ttf" "Arimo/Arimo-Bold.ttf" "${HE_SYMBOLS}"
188+
make_font_set "ru" "Arimo/Arimo-Regular.ttf" "Arimo/Arimo-Bold.ttf" "${RU_SYMBOLS}"
189+
make_font_set "ua" "Arimo/Arimo-Regular.ttf" "Arimo/Arimo-Bold.ttf" "${UA_SYMBOLS}"
190+
make_font_set "ko" "Nanum/NanumBarunpenR.ttf" "Nanum/NanumBarunpenB.ttf" "${KO_SYMBOLS}"
169191

170192
rm lv_font.inc
171193
rm lz4_font

0 commit comments

Comments
 (0)