android/app/jni/res/make-iconfont.sh
raw| 1 | #!/bin/bash |
| 2 | # run after exporting to .ttf |
| 3 | |
| 4 | echo "#include \"fonts.h\"" > ../src/gui/font_furicon.cpp |
| 5 | 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 |