[MPlayer-dev-eng] [PATCH] Avoid error msg about syntax error in font desc

Diego Biurrun diego at biurrun.de
Sat Aug 19 21:53:52 CEST 2006


On Sat, Aug 19, 2006 at 04:05:08PM +0800, Zuxy Meng wrote:
> 
> -font can either accept a font description, or (if have freetype) a
> true-type font filename, or (if have fontconfig) a font name. No
> libvo/font_load.c complants about the latter two cases, and the error
> message IMHO is quite confusing, hence the patch.

I cannot reproduce this.  A command line like

  mplayer -fontconfig -font FreeMono

produces no error message, while

  mplayer -font Vera.ttf

gives a segmentation fault.  Hmmmmmm.  And

  mplayer -font ./Vera.ttf

produces the following error message

  ./Vera.ttf doesn't look like a font description, ignoring.
  Cannot load font: ./Vera.ttf

which is indeed annoying and confusing as the font works without flaw.

So while a patch to get rid of the above misleading error message would
be most welcome, I don't see what your patch fixes.

Diego



More information about the MPlayer-dev-eng mailing list