furnace/res/make-iconfont.sh

6 lines
316 B
Bash
Raw Permalink Normal View History

2023-08-15 00:19:18 +00:00
#!/bin/bash
# run after exporting to .ttf
2023-08-15 01:02:10 +00:00
echo "#include \"fonts.h\"" > ../src/gui/font_furicon.cpp
cat icons.ttf | zlib-flate -compress=9 | xxd -i -n "furIcons_compressed_data" | sed -r "s/^ +//g;s/, /,/g;s/ = /=/g;s/unsigned/const unsigned/g;s/compressed_data_len/compressed_size/" >> ../src/gui/font_furicon.cpp