[MPlayer-cygwin] Does somebody knows, where Mplayer looks for fontconfig file by default?

Eugene Kovgar ken20001 at ukr.net
Sat May 2 23:10:07 CEST 2009


> On Sat, 2 May 2009 02:36:47 +0000 (UTC), John Brown wrote:
>>
>> Eugene Kovgar <ken20001 <at> ukr.net> writes:
>>
>> <snip>
>>>
>>> When I using Mplayer with -fontconfig -font "font", it cannot find
>>> fonts.conf file. So my questions is where on default Mplayer searching
>>> for fonts.conf file to put it to.
>>>
>> <snip>
>>>
>>> So I don't understand where /etc/fonts/* folders must be.
>>>
>>> When I added FONTCONFIG-FILE="path" to my environment variable, it is  
>>> working
>>> and fonts.conf loading saccesfully, but there must be default path,  
>>> where
>>> Mplayer looking for fonts.conf to not adding new parameter to  
>>> environment
>>> variable, as it would be much better and simplier.
>>> Thanks.
>>>
>>
>> If you build fontconfig yourself, you can use the --with-confdir option  
>> to
>> the configure script to tell it where to look.
>
>
> use strace (for linux) or filemon (for windows) to find out where
> mplayer is looking for a file.
>
> -compn

Thanks to you all, guys. I heve tried Process Monitor (earlier FileMon+RegMon) and found that after I applied next patch:


diff -ur fontconfig-2.6.0.orig/src/fccfg.c fontconfig-2.6.0/src/fccfg.c
--- fontconfig-2.6.0.orig/src/fccfg.c	2008-05-25 01:14:15.000000000 +0200
+++ fontconfig-2.6.0/src/fccfg.c	2008-12-07 12:33:39.562500000 +0100
@@ -1567,7 +1567,7 @@
 	  if (p && (FcStrCmpIgnoreCase (p + 1, "bin") == 0 ||
 		    FcStrCmpIgnoreCase (p + 1, "lib") == 0))
 	      *p = '\0';
-	  strcat (fontconfig_path, "\\etc\\fonts");
+	  strcat (fontconfig_path, "\\mplayer");
       }
       else
           fontconfig_path[0] = '\0';

Mplayer looks for default fontconfig file in Mplayer/fonts directory. I have puted it there and on
mplayer.exe  -fontconfig -font Verdana "D:\Music\Mtv Icon The Cure.avi"
command i got Verdana font in OSD. In C:\Documents and Settings\Eugene\Local Settings\Temp\fontconfig\cache\ was created one cache file (This because fontconfig-2.6.0-cachedir.diff patch was applied). But can anybody tell me, what is and for what is Mplayer/WINDOWSFONTDIR ? And in whitch cases it creates?

I'll try --with-confdir options during next time I'll compile fontconfig. So, finally I'll get the same result: witch fontconfig-2.6.0-mplayer-fconfdir.diff patch or with --with-confdir option as I understood (?).

P.S. Still don't understand what fontconfig-2.6.0-fix-dst.diff patch is doing... maybe sombody can explain it to me. Thanks.



More information about the MPlayer-cygwin mailing list