Mercurial > mplayer.hg
annotate TOOLS/subfont-c/runme @ 7110:86c478bea7ce
realplayer codecs wrappers, originaly written by Florian Schneider, extended
by A'rpi
author | arpi |
---|---|
date | Wed, 28 Aug 2002 14:17:06 +0000 |
parents | ffcac0e6a5f4 |
children |
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 | 4 #font=arial.ttf |
5 #font=mints-mild.pcf | |
6 #font=/home/alex/artwiz-mints-mild-latin2.hex | |
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 | 10 fontsize=$2 |
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 | 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 |