summaryrefslogtreecommitdiffstats
path: root/TOOLS/subfont-c/runme
blob: fc1bb1efe9a330f853c2f309735b1342448b893b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

font=arial.ttf
encoding=iso-8859-2
fontsize=24
symbolssize=35
blur=2
outline=1.5

make || exit

./subfont --blur $blur --outline $outline "$encoding" $fontsize "$font" &>log
status=$?
cat log
[ $status == 0 ] || exit

./subfont --append --blur $blur --outline $outline encodings/osd-mplayer $symbolssize osd/osd.pfb || exit

#cp font.desc *.raw ~/.mplayer/font/

exit

SIZE=`awk '/^bitmap size/ {print $NF}' log`+800
display -size $SIZE gray:$encoding-a.raw &
display -size $SIZE gray:$encoding-b.raw &
#convert -size $SIZE gray:$encoding-a.raw $encoding-a.png
#convert -size $SIZE gray:$encoding-b.raw $encoding-b.png