Mplayer without Text

I upgraded my desktop to Kubuntu Karmic 9.10 yesterday and realized an unique problem. There was no text displayed in the OSD(On Screen Display).

Mplayer without Text

If you open the file in command prompt mode you will see the following message:

subtitle font: load_sub_face failed.

The reason for was basically that Mplayer could not find the required font file to display the text. To solve the problem you need to open the .mplayer directory in your home directory. And do one of the two following things:

  1. Copy any font file of your choice to that directory and rename it subfont.ttf (You will find fonts at /usr/share/fonts)
  2. Open the config file in the .mplayer directory and add the following lines:
    font=/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf
    subfont-text-scale=2.5

Ps: You can replace the link to your favourite font after the font= command.  Also using Method 2 will let you even set the size of the font

Reblog this post [with Zemanta]