annotate TOOLS/subfont-c/runme @ 7149:aa9debe16559

10l bug, found by Nexus
author arpi
date Thu, 29 Aug 2002 21:37:45 +0000
parents ffcac0e6a5f4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1505
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
1 #!/bin/bash
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
2
1675
8ccac62ddfb7 Added --unicode switch. This is for UTF-8 encoded subtitles.
zybi
parents: 1607
diff changeset
3 #unicode="--unicode"
6788
alex
parents: 1675
diff changeset
4 #font=arial.ttf
alex
parents: 1675
diff changeset
5 #font=mints-mild.pcf
alex
parents: 1675
diff changeset
6 #font=/home/alex/artwiz-mints-mild-latin2.hex
alex
parents: 1675
diff changeset
7 font=$1
1607
7336606415f2 Implemented new Gaussian blur algorithm, extended font.desc format, optimized for speed and memory usage.
zybi
parents: 1550
diff changeset
8 #font=verdana.ttf
1505
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
9 encoding=iso-8859-2
6788
alex
parents: 1675
diff changeset
10 fontsize=$2
alex
parents: 1675
diff changeset
11 symbolssize=$3
1505
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
12 blur=2
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
13 outline=1.5
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
14
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
15 make || exit
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
16
1675
8ccac62ddfb7 Added --unicode switch. This is for UTF-8 encoded subtitles.
zybi
parents: 1607
diff changeset
17 ./subfont $unicode --blur $blur --outline $outline "$encoding" $fontsize "$font" || exit
1550
39119eb74363 *** empty log message ***
zybi
parents: 1505
diff changeset
18 ./subfont --append --blur $blur --outline $outline encodings/osd-mplayer $symbolssize osd/osd.pfb || exit
1505
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
19
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
20 #cp font.desc *.raw ~/.mplayer/font/
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
21
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
22 exit
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
23
1607
7336606415f2 Implemented new Gaussian blur algorithm, extended font.desc format, optimized for speed and memory usage.
zybi
parents: 1550
diff changeset
24 # display *.raw files
7336606415f2 Implemented new Gaussian blur algorithm, extended font.desc format, optimized for speed and memory usage.
zybi
parents: 1550
diff changeset
25 SIZE=`awk '/bitmap size:/ {print $NF; exit}' font.desc`+800
1505
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
26 display -size $SIZE gray:$encoding-a.raw &
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
27 display -size $SIZE gray:$encoding-b.raw &
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
28 #convert -size $SIZE gray:$encoding-a.raw $encoding-a.png
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
29 #convert -size $SIZE gray:$encoding-b.raw $encoding-b.png