Mplayer Missing Font or How to Make a Symbolic Link to a linux .ttf file

mplayer it is not distrubuted with fonts for subtitles. You can assign almost any font to be the font source for your subtitles. Assigning involves either copying a font to the mplayer home directory, or making a symbolic link to a font, contained elsewhere on the system, for the font of choice. Here are some details:

The subfont.ttf issue with mplayer.

One solution to the missing font issue is to make a symbolic link named "subfont.ttf" and pointing it to an installed ttf (TrueType) font globally in /usr/local/share/mplayer (as root)

For example, using the times font :

You can move to the mplayer folder with:

cd /usr/local/share/mplayer

Then make the symbolic link with

ln -s /usr/share/X11/fonts/TTF/times.ttf ./subfont.ttf

If you are not sure where the .ttf files are on your system try to "find" them using

find /usr/ -name *.ttf

(Using fedora 6) :

cd $HOME/.mplayer (or whatever your mplayer root is)

ln -s /usr/X11R6/lib/X11/fonts/drakfont/ttf/times.ttf ./subfont.ttf

(Using fedora 7) :

cd /usr/local/share/mplayer (or wherever your mplayer root folder is)

ln -s /usr/local/X11/fonts/TTF/luxirr.ttf ./subfont.ttf

You can also set a path to a font.desc file:

-font Search for the OSD/SUB fonts in an alternative directory (default for normal fonts: ~/.mplayer/font/font.desc, default for FreeType fonts: ~/.mplayer/subfont.ttf). NOTE: With FreeType, this option determines the path to the text font file. With fontconfig, this option determines the font- config font name.

EXAMPLE: -font ~/.mplayer/arial-14/font.desc -font ~/.mplayer/arialuni.ttf -font ’Bitstream Vera Sans’ Look in man mplayer for more info:

I hope this is helpful.

Paul

Leave a Comment









Comment XML feeds: RSS | Atom

Entries of General

Weather