Moved LVGL to libopenui
This commit is contained in:
committed by
Raphael Coeffic
parent
acc517a684
commit
755617ae1a
@@ -1,5 +1,9 @@
|
||||
string(TOLOWER ${TRANSLATIONS} subset)
|
||||
|
||||
#
|
||||
# libopenui fonts
|
||||
#
|
||||
|
||||
if( (${subset} STREQUAL "cn") OR (${subset} STREQUAL "tw"))
|
||||
# Use this font for CJK languages
|
||||
set(FONT "Noto/NotoSansCJKsc-Regular")
|
||||
@@ -18,10 +22,6 @@ else()
|
||||
#set(FONT_BOLD "Ubuntu/Ubuntu-Bold")
|
||||
endif()
|
||||
|
||||
if(PCB STREQUAL X10)
|
||||
# set(FONT_ARGS ${FONT_ARGS} --reverse)
|
||||
endif()
|
||||
|
||||
add_truetype_font_target(9 9 ${subset} none "${FONT_ARGS}")
|
||||
add_truetype_font_target(13 13 ${subset} none "${FONT_ARGS}")
|
||||
add_truetype_font_target(15 15 ${subset} none "${FONT_ARGS}")
|
||||
@@ -42,3 +42,22 @@ endif()
|
||||
add_truetype_font_target(64 64 en bold "${FONT_ARGS}")
|
||||
|
||||
add_custom_target(truetype_fonts DEPENDS ${truetype_fonts_targets})
|
||||
|
||||
#
|
||||
# LVGL fonts
|
||||
#
|
||||
|
||||
set(LVGL_FONT_DIR fonts/lvgl)
|
||||
set(LVGL_FONT_SOURCES
|
||||
${LVGL_FONT_DIR}/lv_font_roboto_9.c
|
||||
${LVGL_FONT_DIR}/lv_font_roboto_13.c
|
||||
${LVGL_FONT_DIR}/lv_font_roboto_14.c
|
||||
${LVGL_FONT_DIR}/lv_font_roboto_15.c
|
||||
${LVGL_FONT_DIR}/lv_font_roboto_16.c
|
||||
${LVGL_FONT_DIR}/lv_font_roboto_17.c
|
||||
${LVGL_FONT_DIR}/lv_font_roboto_24.c
|
||||
${LVGL_FONT_DIR}/lv_font_roboto_bold_16.c
|
||||
${LVGL_FONT_DIR}/lv_font_roboto_bold_17.c
|
||||
${LVGL_FONT_DIR}/lv_font_roboto_bold_32.c
|
||||
${LVGL_FONT_DIR}/lv_font_roboto_bold_64.c
|
||||
PARENT_SCOPE)
|
||||
|
||||
Reference in New Issue
Block a user