Generate font bitmaps without Qt (using Python Pillow) (#5891)

* Generate font bitmaps without Qt (using Python Pillow)
* Roboto font now default
This commit is contained in:
Raphael Coeffic
2018-05-21 10:45:13 +02:00
committed by Bertrand Songis
parent 8e7e036591
commit 526f460cd4
54 changed files with 498 additions and 111 deletions
+2 -2
View File
@@ -14,10 +14,10 @@ macro(add_bitmaps_target targetname filter width format)
add_custom_target(${targetname} DEPENDS ${bitmaps_files})
endmacro(add_bitmaps_target)
macro(add_truetype_font_target radio name font size bold)
macro(add_truetype_font_target radio name font size offset)
set(target ${RADIO_SRC_DIRECTORY}/fonts/${radio}/font_${name})
add_custom_target(ttf_${radio}_${name}
COMMAND ${PYTHON_EXECUTABLE} ${RADIO_DIRECTORY}/util/font2png.py ${font} ${size} ${bold} ${target}
COMMAND ${PYTHON_EXECUTABLE} ${RADIO_DIRECTORY}/util/font2png.py ${font} ${size} ${offset} ${target}
WORKING_DIRECTORY ${RADIO_SRC_DIRECTORY}
)
set(ttf_${radio}_fonts_targets ${ttf_${radio}_fonts_targets} ttf_${radio}_${name})