chore(color): Update CN, TW, JP, HE and RU font files (#4308)

This commit is contained in:
philmoz
2023-11-13 10:51:28 +10:00
committed by GitHub
parent 39b21b6772
commit 6d25dfea48
40 changed files with 16298 additions and 20009 deletions
+5 -68
View File
@@ -17,17 +17,11 @@ LATIN1_EXT_A="0x100-0x17F"
LATIN1="${LATIN1_SUPPLEMENT},${LATIN1_EXT_A}"
COMPARE="0x2265"
TW_SYMBOLS=$(python get_char.py ../../translations/tw.h)
CN_SYMBOLS=$(python get_char.py ../../translations/cn.h)
JP_Hiragana="0x3040-0x309F"
JP_Katakana="0x30A0-0x30FF"
JP_Kanji=$(python get_char.py ../../translations/jp.h)
JP_SYMBOLS="${JP_Hiragana},${JP_Katakana},${JP_Kanji}"
HE_SYMBOLS="0x05D0-0x05F4"
RU_SYMBOLS="0x0410-0x044f"
TW_SYMBOLS=$(python3 get_char_ck.py ../../translations/tw.h)
CN_SYMBOLS=$(python3 get_char_ck.py ../../translations/cn.h)
JP_SYMBOLS=$(python3 get_char_jp.py ../../translations/jp.h)
HE_SYMBOLS=$(python3 get_char_he.py ../../translations/he.h)
RU_SYMBOLS=$(python3 get_char_ru.py ../../translations/ru.h)
# https://yeun.github.io/open-arrow/
ARROWS_FONT="EdgeTX/OpenArrow-Regular.woff"
@@ -66,60 +60,6 @@ function make_font_bin() {
--format bin -o lv_font_${name}_${size}.bin --force-fast-kern-format --no-compress ${arg}
}
function make_font_w_extra_sym() {
local name=$1
local ttf=$2
local size=$3
local bpp=$4
local chars=$5
local arg=$6
lv_font_conv --no-prefilter --bpp ${bpp} --size ${size} \
--font ${TTF_DIR}${ttf} -r ${ASCII},${DEGREE}${chars} \
--font EdgeTX/extra.ttf -r ${EXTRA_SYM} \
--format lvgl -o lv_font_${name}_${size}.c --force-fast-kern-format ${arg}
}
function make_font_w_extra_sym_bin() {
local name=$1
local ttf=$2
local size=$3
local bpp=$4
local chars=$5
local arg=$6
lv_font_conv --no-prefilter --bpp ${bpp} --size ${size} \
--font ${TTF_DIR}${ttf} -r ${ASCII},${DEGREE}${chars} \
--font EdgeTX/extra.ttf -r ${EXTRA_SYM} \
--format bin -o lv_font_${name}_${size}.bin --force-fast-kern-format --no-compress ${arg}
}
function make_font_no_sym() {
local name=$1
local ttf=$2
local size=$3
local bpp=$4
local chars=$5
local arg=$6
lv_font_conv --no-prefilter --bpp ${bpp} --size ${size} \
--font ${TTF_DIR}${ttf} -r ${ASCII},${DEGREE}${chars} \
--format lvgl -o lv_font_${name}_${size}.c --force-fast-kern-format ${arg}
}
function make_font_no_sym_bin() {
local name=$1
local ttf=$2
local size=$3
local bpp=$4
local chars=$5
local arg=$6
lv_font_conv --no-prefilter --bpp ${bpp} --size ${size} \
--font ${TTF_DIR}${ttf} -r ${ASCII},${DEGREE}${chars} \
--format bin -o lv_font_${name}_${size}.bin --force-fast-kern-format --no-compress ${arg}
}
# LV_SYMBOL_CHARGE, LV_SYMBOL_NEW_LINE, LV_SYMBOL_SD_CARD, LV_SYMBOL_CLOSE
# LV_SYMBOL_FILE, LV_SYMBOL_OK, LV_SYMBOL_WIFI
BL_SYMBOLS="61671,63650,63426,61453,61787,61452,61931"
@@ -144,9 +84,6 @@ function make_font_set() {
make_font "${name}" "${ttf_normal}" 13 4 ${chars} --no-compress
make_font "${name}" "${ttf_normal}" 16 4 ${chars} --no-compress
make_font "${name}_bold" "${ttf_bold}" 16 4 ${chars} --no-compress
# make_font_w_extra_sym "${name}" "${ttf_normal}" 24 2 ${chars}
# make_font_no_sym "${name}_bold" "${ttf_bold}" 32 2 ${chars}
# make_font_no_sym "${name}_bold" "${ttf_bold}" 64 2
make_font_bin "${name}" "${ttf_normal}" 24 4 ${chars}
make_font_bin "${name}_bold" "${ttf_bold}" 32 4 ${chars}
make_font_bin "${name}_bold" "${ttf_bold}" 64 4 ${chars}