diff TOOLS/subfont-c/runme @ 1607:7336606415f2

Implemented new Gaussian blur algorithm, extended font.desc format, optimized for speed and memory usage.
author zybi
date Tue, 21 Aug 2001 14:00:57 +0000
parents 39119eb74363
children 8ccac62ddfb7
line wrap: on
line diff
--- a/TOOLS/subfont-c/runme	Tue Aug 21 12:52:01 2001 +0000
+++ b/TOOLS/subfont-c/runme	Tue Aug 21 14:00:57 2001 +0000
@@ -1,6 +1,7 @@
 #!/bin/bash
 
 font=arial.ttf
+#font=verdana.ttf
 encoding=iso-8859-2
 fontsize=24
 symbolssize=35
@@ -9,18 +10,15 @@
 
 make || exit
 
-./subfont --blur $blur --outline $outline "$encoding" $fontsize "$font" &>log
-status=$?
-cat log
-[ $status == 0 ] || exit
-
+./subfont --blur $blur --outline $outline "$encoding" $fontsize "$font" || exit
 ./subfont --append --blur $blur --outline $outline encodings/osd-mplayer $symbolssize osd/osd.pfb || exit
 
 #cp font.desc *.raw ~/.mplayer/font/
 
 exit
 
-SIZE=`awk '/^bitmap size/ {print $NF}' log`+800
+# display *.raw files
+SIZE=`awk '/bitmap size:/ {print $NF; exit}' font.desc`+800
 display -size $SIZE gray:$encoding-a.raw &
 display -size $SIZE gray:$encoding-b.raw &
 #convert -size $SIZE gray:$encoding-a.raw $encoding-a.png