Mercurial > mplayer.hg
comparison TOOLS/subfont-c/runme @ 1607:7336606415f2
Implemented new Gaussian blur algorithm, extended font.desc format, optimized for speed and memory usage.
author | zybi |
---|---|
date | Tue, 21 Aug 2001 14:00:57 +0000 |
parents | 39119eb74363 |
children | 8ccac62ddfb7 |
comparison
equal
deleted
inserted
replaced
1606:daec36af6c01 | 1607:7336606415f2 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 font=arial.ttf | 3 font=arial.ttf |
4 #font=verdana.ttf | |
4 encoding=iso-8859-2 | 5 encoding=iso-8859-2 |
5 fontsize=24 | 6 fontsize=24 |
6 symbolssize=35 | 7 symbolssize=35 |
7 blur=2 | 8 blur=2 |
8 outline=1.5 | 9 outline=1.5 |
9 | 10 |
10 make || exit | 11 make || exit |
11 | 12 |
12 ./subfont --blur $blur --outline $outline "$encoding" $fontsize "$font" &>log | 13 ./subfont --blur $blur --outline $outline "$encoding" $fontsize "$font" || exit |
13 status=$? | |
14 cat log | |
15 [ $status == 0 ] || exit | |
16 | |
17 ./subfont --append --blur $blur --outline $outline encodings/osd-mplayer $symbolssize osd/osd.pfb || exit | 14 ./subfont --append --blur $blur --outline $outline encodings/osd-mplayer $symbolssize osd/osd.pfb || exit |
18 | 15 |
19 #cp font.desc *.raw ~/.mplayer/font/ | 16 #cp font.desc *.raw ~/.mplayer/font/ |
20 | 17 |
21 exit | 18 exit |
22 | 19 |
23 SIZE=`awk '/^bitmap size/ {print $NF}' log`+800 | 20 # display *.raw files |
21 SIZE=`awk '/bitmap size:/ {print $NF; exit}' font.desc`+800 | |
24 display -size $SIZE gray:$encoding-a.raw & | 22 display -size $SIZE gray:$encoding-a.raw & |
25 display -size $SIZE gray:$encoding-b.raw & | 23 display -size $SIZE gray:$encoding-b.raw & |
26 #convert -size $SIZE gray:$encoding-a.raw $encoding-a.png | 24 #convert -size $SIZE gray:$encoding-a.raw $encoding-a.png |
27 #convert -size $SIZE gray:$encoding-b.raw $encoding-b.png | 25 #convert -size $SIZE gray:$encoding-b.raw $encoding-b.png |