committed by
Raphael Coeffic
parent
3917451318
commit
d65842097c
@@ -7,13 +7,18 @@ SYMBOLS_FONT="${LVGLDIR}/scripts/built_in_font/FontAwesome5-Solid+Brands+Regular
|
||||
SYMBOLS="61441,61448,61451,61452,61452,61453,61457,61459,61461,61465,61468,61473,61478,61479,61480,61502,61507,61512,61515,61516,61517,61521,61522,61523,61524,61543,61544,61550,61552,61553,61556,61559,61560,61561,61563,61587,61589,61636,61637,61639,61641,61664,61671,61674,61683,61724,61732,61787,61931,62016,62017,62018,62019,62020,62087,62099,62212,62189,62810,63426,63650"
|
||||
|
||||
EXTRA_FONT="EdgeTX/extra.ttf"
|
||||
EXTRA_SYM="0x80-0x94"
|
||||
EXTRA_SYM="0x88-0x94"
|
||||
|
||||
ASCII="0x20-0x7F"
|
||||
DEGREE="0xB0"
|
||||
BULLET="0x2022"
|
||||
LATIN1="0xC0-0xFF"
|
||||
|
||||
# https://yeun.github.io/open-arrow/
|
||||
ARROWS_FONT="EdgeTX/OpenArrow-Regular.woff"
|
||||
# 0x80: right, 0x81: left, 0x82: up, 0x83: down
|
||||
ARROWS="0x21E8=>0x80,0x21E6=>0x81,0x21E7=>0x82,0x21E9=>0x83"
|
||||
|
||||
function make_font() {
|
||||
local name=$1
|
||||
local ttf=$2
|
||||
@@ -22,6 +27,7 @@ function make_font() {
|
||||
lv_font_conv --no-prefilter --bpp 4 --size ${size} \
|
||||
--font ${TTF_DIR}${ttf} -r ${ASCII},${DEGREE},${BULLET},${LATIN1} \
|
||||
--font EdgeTX/extra.ttf -r ${EXTRA_SYM} \
|
||||
--font ${ARROWS_FONT} -r ${ARROWS} \
|
||||
--font ${SYMBOLS_FONT} -r ${SYMBOLS} \
|
||||
--format lvgl -o lv_font_${name}_${size}.c --force-fast-kern-format ${arg}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user