Use the same font all the way for a specific language
This commit is contained in:
+1
-3
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user