view TOOLS/subfont-c/runme @ 13694:acf4fbc26d05

Sync with 1.787: 1.787: lavc is faster than XviD and thus recommended for decoding and PP. 1.786: man page review part XII 1.785: consistent I/P/B-frame spelling 1.784: Spelling/wording/clarity improvements and bug fixes.
author gpoirier
date Tue, 19 Oct 2004 20:11:26 +0000
parents ffcac0e6a5f4
children
line wrap: on
line source

#!/bin/bash

#unicode="--unicode"
#font=arial.ttf
#font=mints-mild.pcf
#font=/home/alex/artwiz-mints-mild-latin2.hex
font=$1
#font=verdana.ttf
encoding=iso-8859-2
fontsize=$2
symbolssize=$3
blur=2
outline=1.5

make || exit

./subfont $unicode --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

# 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
#convert -size $SIZE gray:$encoding-b.raw $encoding-b.png