2001-08-13 18:37:10 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2001-08-24 08:55:00 +00:00
|
|
|
#unicode="--unicode"
|
2001-08-13 18:37:10 +00:00
|
|
|
font=arial.ttf
|
2001-08-21 14:00:57 +00:00
|
|
|
#font=verdana.ttf
|
2001-08-13 18:37:10 +00:00
|
|
|
encoding=iso-8859-2
|
|
|
|
fontsize=24
|
|
|
|
symbolssize=35
|
|
|
|
blur=2
|
|
|
|
outline=1.5
|
|
|
|
|
|
|
|
make || exit
|
|
|
|
|
2001-08-24 08:55:00 +00:00
|
|
|
./subfont $unicode --blur $blur --outline $outline "$encoding" $fontsize "$font" || exit
|
2001-08-16 11:42:10 +00:00
|
|
|
./subfont --append --blur $blur --outline $outline encodings/osd-mplayer $symbolssize osd/osd.pfb || exit
|
2001-08-13 18:37:10 +00:00
|
|
|
|
|
|
|
#cp font.desc *.raw ~/.mplayer/font/
|
|
|
|
|
|
|
|
exit
|
|
|
|
|
2001-08-21 14:00:57 +00:00
|
|
|
# display *.raw files
|
|
|
|
SIZE=`awk '/bitmap size:/ {print $NF; exit}' font.desc`+800
|
2001-08-13 18:37:10 +00:00
|
|
|
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
|