1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 01:22:30 +00:00
mpv/TOOLS/subfont-c/runme
zybi 9d6896679b Added --unicode switch. This is for UTF-8 encoded subtitles.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1676 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-08-24 08:55:00 +00:00

27 lines
672 B
Bash
Executable File

#!/bin/bash
#unicode="--unicode"
font=arial.ttf
#font=verdana.ttf
encoding=iso-8859-2
fontsize=24
symbolssize=35
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