annotate TOOLS/subfont-c/runme @ 5937:4b18bf35f153

printf to mp_msg
author albeu
date Thu, 02 May 2002 11:00:16 +0000
parents 8ccac62ddfb7
children ffcac0e6a5f4
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"
1505
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
4 font=arial.ttf
1607
7336606415f2 Implemented new Gaussian blur algorithm, extended font.desc format, optimized for speed and memory usage.
zybi
parents: 1550
diff changeset
5 #font=verdana.ttf
1505
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
6 encoding=iso-8859-2
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
7 fontsize=24
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
8 symbolssize=35
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
9 blur=2
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
10 outline=1.5
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
11
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
12 make || exit
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
13
1675
8ccac62ddfb7 Added --unicode switch. This is for UTF-8 encoded subtitles.
zybi
parents: 1607
diff changeset
14 ./subfont $unicode --blur $blur --outline $outline "$encoding" $fontsize "$font" || exit
1550
39119eb74363 *** empty log message ***
zybi
parents: 1505
diff changeset
15 ./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
16
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
17 #cp font.desc *.raw ~/.mplayer/font/
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
18
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
19 exit
842c29861e25 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
arpi
parents:
diff changeset
20
1607
7336606415f2 Implemented new Gaussian blur algorithm, extended font.desc format, optimized for speed and memory usage.
zybi
parents: 1550
diff changeset
21 # display *.raw files
7336606415f2 Implemented new Gaussian blur algorithm, extended font.desc format, optimized for speed and memory usage.
zybi
parents: 1550
diff changeset
22 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
23 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
24 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
25 #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
26 #convert -size $SIZE gray:$encoding-b.raw $encoding-b.png