mplayer

在fedora 9上使用mplayer总是出现如下错误,没法看片。

Selected font is not scalable. Using ppem=15.
FT_Set_Pixel_Sizes failed.
Wrong bounding box, width <= 0 !
Cannot prepare subtitle font.

后来查到是在/etc/mplayer/mplayer.conf里面fontconfig设置为yes,而相应的font为Sans。要解决这个问题,只要把font设置为一个fc-list命令返回的字体名即可。下面是我的~/.mplayer/config配置文件的内容

subcp="cp936"
font="文鼎PL中楷Uni,AR PL ZenKai Uni"

2 thoughts on “mplayer

  1. 匿名 says:

    Thank you for the post. Out of all the google search results, this is the only method that works for me.

    Also, for some unknown reason, the font="xxx" line must be set in ~/.mplayer/config. Setting it in /etc/mplayer/mplayer.conf doesn't work.

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据