Re: Does somebody knows, where Mplayer looks for fontconfig file by default?
John Brown <[email protected]> Sat, 2 May 2009 02:36:47 +0000 (UTC)
| Newsgroups | gmane.comp.video.mplayer.cygwin |
|---|---|
| Message-ID | <[email protected]> |
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.
>
Hello Eugene,
From the fontconfig source file src/fccfg.c:
/* If the fontconfig DLL is in a "bin" or "lib" subfolder,
* assume it's a Unix-style installation tree, and use
* "etc/fonts" in there as FONTCONFIG_PATH. Otherwise use the
* folder where the DLL is as FONTCONFIG_PATH.
*/
I don't know what happpens if fontconfig is built as a static library.
If you build fontconfig yourself, you can use the --with-confdir option to
the configure script to tell it where to look.