mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 21:15:11 +00:00
44973de675
- smaller - better - ugly big-endian workaround no longer necessary
5 lines
316 B
Bash
Executable file
5 lines
316 B
Bash
Executable file
#!/bin/bash
|
|
# run after exporting to .ttf
|
|
|
|
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
|