[Mplayer-users] [patch] Let user specify font file to subfont on the command line
André Dahlqvist
andre.dahlqvist at telia.com
Sat Aug 18 13:00:23 CEST 2001
Below patch allows the user to specify which font file to use with
'subfont' on the command line. In my opinion it's easier than having to
edit the runme script for every font you want to run it on. You could do
the same for the encoding of course, but I assume that is less likely to
change between runs.
--- TOOLS/subfont-c/runme~ Sat Aug 18 12:54:18 2001
+++ TOOLS/subfont-c/runme Sat Aug 18 12:55:22 2001
@@ -1,6 +1,6 @@
#!/bin/bash
-font=arial.ttf
+font=$1
encoding=iso-8859-2
fontsize=24
symbolssize=35
--- TOOLS/subfont-c/README~ Sat Aug 18 12:54:23 2001
+++ TOOLS/subfont-c/README Sat Aug 18 12:55:14 2001
@@ -2,8 +2,8 @@
~~~~~~
1. Make sure you have FreeType 2 installed.
2. Get a TrueType or Type 1 font.
-3. Modify `runme' script for your encoding and font path.
-4. Type: ./runme
+3. Modify `runme' script for your encoding.
+4. Type: ./runme <font_file>
5. Copy *.raw and font.desc files to ~/.mplayer/font/
6. Run subfont alone to see more options.
--
André Dahlqvist <andre.dahlqvist at telia.com>
_______________________________________________
Mplayer-users mailing list
Mplayer-users at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-users
More information about the MPlayer-users
mailing list