Oliver Buerschaper wrote:
2. Where is OSFONTDIR set on mkiv? I specifically do NOT want my
system fonts used by ConTeXt; everything I want to use with TeX is in
one of my texmf trees. How can I prevent mkiv from taking the system
paths into account?
indeed, putting them in the tree is more robust (and controllable)
mojca is supposed to know the osfontdir details
May I jump in here with a question? The other day I realized that
whatever OSFONTDIR is set in texmf.cnf is overridden in
luatools.lua
mtxrun.lua
data-res.lua
only data-res, as the others use that (merged) ... i'll add a check for
cnf settings
and possibly in other files, too. While these fix functions point to the
correct osx font directories
1. ~/Library/Fonts
2. /Library/Fonts
3. /System/Library/Fonts
and set things up as intended for most scenarios presumably, we're
losing quite a bit of flexibility here I guess. Are this fix functions
considered a temporary workaround or are they part of a larger plan? If
they're just a hack, I'm wondering whether we could delegate control
over OSFONTDIR back to the configuration files ...
the problem is that it's kind of unofficial and we cannot be soure if
it's set. anyhow, i'll also test the cnf data
local ie, iv = instance.environment, instance.variables
local function fix(varname,default)
local proname = varname .. "." .. instance.progname or "crap"
local p, v = ie[proname], ie[varname] or iv[varname]
if not ((p and p ~= "") or (v and v ~= "")) then
iv[varname] = default -- or environment?
end
end
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________