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. 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.

One has to set at least the variable
    FONTCONFIG_PATH
which means that it won't work out of the box, in which case one can
just as well set OSFONTDIR directly.

I think that I asked Fedora packagers to set FONTCONFIG_PATH in their
distribution though.

Mojca
___________________________________________________________________________________
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