On Mon, Jul 30, 2012 at 09:50:44AM +0200, Mojca Miklavec wrote:
> On Mon, Jul 30, 2012 at 1:05 AM, Hans Hagen wrote:
> > On 29-7-2012 22:36, Mojca Miklavec wrote:
> >>
> >> For MKII the answer is no. MKIV can - to a
> >> certain extent - read and interpret fontconfig's XML configuration
> >> file. The real question is whether ConTeXt finds the right file. On
> >> windows there is fonts.conf used by XeTeX and it might be that MKIV
> >> reads that file, but I'm not sure.
> >
> >
> > Last time I checked (more than a year ago) it did read that file.
> 
> What I have in mind is that it's far from being trivial to find the
> right fonts.conf, on linux in particular. On my mac I have:
> 
> /Applications/Gimp.app/Contents/Resources/etc/fonts/fonts.conf
> /Applications/MPlayer OSX Extended.app/Contents/Resources/fonts/fonts.conf
> /opt/local/etc/fonts/fonts.conf
> /usr/X11/lib/X11/fontconfig/conf.avail/05-osx-fonts.conf
> /usr/X11/lib/X11/fontconfig/conf.d/05-osx-fonts.conf
> /usr/X11/lib/X11/fontconfig/fonts.conf
> 
> So feel free to guess which one to use ;)
> 
> I believe that one should at least consider
> /usr/X11/lib/X11/fontconfig/fonts.conf &
> /usr/X11/lib/X11/fontconfig/conf.d/05-osx-fonts.conf in my case, but
> there is no "include the other file", so ConTeXt would actually have
> to start reading both.

fonts.conf should have something like:

<include ignore_missing="yes">conf.d</include>

no? Here it does, otherwise fontconfig itself has no way of reading
other files. But the whole thing is tricky, because the default path to
the root fonts.conf file is set into libfontconfig at build time,
ConTeXt has no way of knowing that, short of linking to libfontconfig.

> The first two files are bundled with applications (Gimp, MPlayer) and
> aso have their own caches & their own settings, so when users start
> messing and configuring the system-wide settings, those two
> applications won't obey those anyway.

Which is very pointless, there should be only one fontconfig installed
system wide, but that mac anyway :)

Regards,
 Khaled
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to