Mercurial > mplayer.hg
annotate TOOLS/subfont-c/runme @ 20804:cfd35d61bed3
r20711: MSGTRs for demux_avi.c
r20712: better wording for "workarounding"
r20739: Remove remnants of long-gone libfame. (previously applied)
r20774: Adding ability to check allowed frequency range.
r20775: Spelling fix: Allowable -> Allowed
r20780: MSGTRs for ao_alsa.c
r20781: MSGTRs for libvo/aspect.c and libvo/vo_xv.c
r20782,r20783: (do not apply)
r20817: add full stop at end of sentence
author | kraymer |
---|---|
date | Thu, 09 Nov 2006 18:05: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 |