[MPlayer-DOCS] [PATCH] reword missing subfont error

Diego Biurrun diego at biurrun.de
Mon Oct 22 17:17:06 CEST 2007


On Sun, Oct 21, 2007 at 09:18:24AM -0400, Compn wrote:
> i am not sure what is best here.
> but i know at least a couple hundred users have had trouble with this
> error.
> 
> also, shouldnt this be in help/help_mp-en.h ?

Yes, feel free to move it at any time.

> --- font_load_ft.c	(revision 24828)
> +++ font_load_ft.c	(working copy)
> @@ -904,7 +904,7 @@
>  	    err = FT_New_Face(library, MPLAYER_DATADIR "/subfont.ttf", 0, face);
>  	    if (err) {
> -	        mp_msg(MSGT_OSD, MSGL_ERR, "New_Face failed. Maybe the font path is wrong.\nPlease supply the text font file (~/.mplayer/subfont.ttf).\n" );
> +	        mp_msg(MSGT_OSD, MSGL_ERR, "Cannot find font (~/.mplayer/subfont.ttf).\nPlease use -font /usr/X11R6/lib/X11/fonts/TTF/Vera.ttf.\n" );

This path is obsolete and suggesting a path is a bad idea in the first
place.  Just a hint to the -font option should be enough.

Thinking about it, is this subfont.ttf link a good idea in the first
place?

Diego



More information about the MPlayer-DOCS mailing list