Use the same font all the way for a specific language

This commit is contained in:
Raphael Coeffic
2021-05-08 08:40:02 +02:00
parent 3f64afaa5c
commit aeb297c800
4 changed files with 30 additions and 24 deletions
+1 -3
View File
@@ -34,14 +34,12 @@ macro(add_truetype_font_target name size subset effect args)
set(target font_${name})
if(${effect} STREQUAL "bold")
set(font ${FONT_BOLD})
set(cjk_font ${CJK_FONT_BOLD})
else()
set(font ${FONT})
set(cjk_font ${CJK_FONT})
endif()
add_custom_command(
OUTPUT ${target}.png ${target}.specs ${target}.lbm
COMMAND ${PYTHON_EXECUTABLE} ${TOOLS_DIR}/build-font-bitmap.py --subset ${subset} --size ${size} --font ${font} --cjk-font ${cjk_font} --output ${target}
COMMAND ${PYTHON_EXECUTABLE} ${TOOLS_DIR}/build-font-bitmap.py --subset ${subset} --size ${size} --font ${font} --output ${target}
COMMAND ${PYTHON_EXECUTABLE} ${LIBOPENUI_TOOLS_DIR}/encode-bitmap.py --format 8bits --rle --size-format 2 ${args} ${target}.png ${target}.lbm
DEPENDS ${TOOLS_DIR}/build-font-bitmap.py ${TOOLS_DIR}/charset.py ${LIBOPENUI_TOOLS_DIR}/encode-bitmap.py ${RADIO_SRC_DIR}/translations/cn.h.txt ${RADIO_SRC_DIR}/fonts/extra_${size}px.png
)