]> git.xonotic.org Git - xonotic/xonotic.git/blob - misc/tools/ttf2conchars/foo.sh
./all keygen: also accept ed25519 keys.
[xonotic/xonotic.git] / misc / tools / ttf2conchars / foo.sh
1 #!/bin/sh
2
3 # assumes gfx is a symlink to Nexuiz's gfx dir
4 if ! [ -e "gfx/conchars.tga" ]; then
5         echo "Symlink your Nexuiz gfx dir to gfx in this folder."
6         echo "Then retry."
7         exit 1
8 fi
9
10 set -ex
11 gcc -Wall -Wextra ttf2conchars.c `sdl-config --cflags --libs` -lSDL_ttf -lSDL_image -ggdb3
12 ./a.out gfx/conchars.tga 0 56 64 gfx/vera-sans.tga /usr/share/fonts/truetype/ttf-bitstream-vera/VeraBd.ttf "" "" 1 0.08 0.000000000000001
13 ./a.out gfx/conchars.tga 0 56 64 gfx/vera-sans-big.tga /usr/share/fonts/truetype/ttf-bitstream-vera/VeraBd.ttf "" "" 1 0.28  0.000000000000001
14 display gfx/vera-sans-big.tga