Прошло 2 года.
This commit is contained in:
22
Makefile
22
Makefile
@@ -1,10 +1,22 @@
|
||||
PYTHON ?= python3.11
|
||||
EPDIY_SCRIPTS := lib/epdiy/scripts
|
||||
MARTIAN_FONT := static/MartianMono-VariableFont_wdth,wght.ttf
|
||||
MARTIAN_CHARS := 0123456789:;.,-+/!@\#^&*%°CABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюя
|
||||
|
||||
image:
|
||||
python3 .pio/libdeps/esp32dev/epdiy/scripts/imgconvert.py -i static/sun.jpg -n sun -o include/sun.h \
|
||||
&& python3 .pio/libdeps/esp32dev/epdiy/scripts/imgconvert.py -i static/moon.jpg -n moon -o include/moon.h
|
||||
$(PYTHON) $(EPDIY_SCRIPTS)/imgconvert.py -i static/sun.jpg -n sun -o include/sun.h
|
||||
$(PYTHON) $(EPDIY_SCRIPTS)/imgconvert.py -i static/moon.jpg -n moon -o include/moon.h
|
||||
|
||||
font_12:
|
||||
python3 .pio/libdeps/esp32dev/epdiy/scripts/fontconvert.py --compress IBMPlexMono12 12 static/IBMPlexMono-SemiBold.ttf --string '0123456789:;.,-+/!@#^&*%°CАБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюя' > lib/IBMPlexMono/IBMPlexMono12.h
|
||||
$(PYTHON) $(EPDIY_SCRIPTS)/fontconvert.py --compress MartianMono12 12 $(MARTIAN_FONT) --string '$(MARTIAN_CHARS)' > lib/MartianMono/MartianMono12.h
|
||||
|
||||
font_30:
|
||||
python3 .pio/libdeps/esp32dev/epdiy/scripts/fontconvert.py --compress MartianMono30 30 static/MartianMono-VariableFont_wdth,wght.ttf --string 'АВДИМНОПСФЧЯабвгдеиклнопрстуцьюя' > lib/MartianMono/MartianMono30.h
|
||||
$(PYTHON) $(EPDIY_SCRIPTS)/fontconvert.py --compress MartianMono30 30 $(MARTIAN_FONT) --string '$(MARTIAN_CHARS)' > lib/MartianMono/MartianMono30.h
|
||||
|
||||
font_120:
|
||||
$(PYTHON) $(EPDIY_SCRIPTS)/fontconvert.py --compress MartianMono120 120 $(MARTIAN_FONT) --string '0123456789' > lib/MartianMono/MartianMono120.h
|
||||
|
||||
font_200:
|
||||
python3 .pio/libdeps/esp32dev/epdiy/scripts/fontconvert.py --compress MartianMono200 200 static/MartianMono-VariableFont_wdth,wght.ttf --string '0123456789' > lib/MartianMono/MartianMono200.h
|
||||
$(PYTHON) $(EPDIY_SCRIPTS)/fontconvert.py --compress MartianMono200 200 $(MARTIAN_FONT) --string '0123456789' > lib/MartianMono/MartianMono200.h
|
||||
|
||||
font_all: font_12 font_30 font_120 font_200
|
||||
|
||||
Reference in New Issue
Block a user