On Thu, Jul 3, 2008 at 11:28 AM, Mojca Miklavec
<[EMAIL PROTECTED]> wrote:
> On Thu, Jul 3, 2008 at 10:48 AM, Wolfgang Schuster wrote:
>> On Thu, Jul 3, 2008 at 9:57 AM, Mojca Miklavec
>> <[EMAIL PROTECTED]> wrote:
>>> On Thu, Jul 3, 2008 at 1:40 AM, Andrea Valle wrote:
>>>> But, Hans, in the post Mojca says I have the same problem:)
>>>> uh?
>>>
>>> In font-syn.lua there is
>>>    local pathlist = fonts.names.getpaths()
>>>
>>> This used to contain some hard-coded paths for Mac users, but then
>>> Hans switched to reading fonts.conf with
>>>
>>>    -- name is "fonts.conf"
>>>    local name = fonts.names.xml_configuration_file or ""
>>>    if name ~= "" then
>>>        -- this works on Hans' computer, but not here; name becomes empty
>>>        local name = input.find_file(name,"other")
>>>        -- so this loop is never entered and system fonts are never read
>>>        if name ~= "" then
>>>            collect(xml.collect_texts(xml.load(name),"dir",true))
>>>        end
>>>    end
>>>
>>> I guess that Hans has a fonts.conf in his TeX tree, while Linux & Mac
>>> users don't, and luaTeX doesn't know where to look for fonts.conf.
>>> What's worse: I suspect that OSFONTSDIR might be completely ignored.
>>>
>>> No, don't ask me where fonts.conf should be. Mine are at
>>>    /Users/mojca/.fonts.conf
>>>    /private/etc/fonts/fonts.conf
>>> but I have no idea what's the proper/default location if any.
>>
>> $TEXMF/fonts/conf/fonts.conf
>
> For XeTeX on Windows, yes. But not on other platforms.
>
>>> The /private/etc/fonts/fonts.conf one says:
>>>
>>> <!--
>>>  Load per-user customization file
>>> -->
>>>  <include ignore_missing="yes">~/.fonts.conf</include>
>>>
>>> <!--
>>>  Load local system customization file
>>> -->
>>>  <include ignore_missing="yes">local.conf</include>
>>>
>>> So I guess that's where the other one gets included.
>>
>> But you need fonts.conf only for XeTeX, LuaTeX (better MkIV) could
>> find the fonts with the predefined paths in mtxrun.
>
> "could" could be read as "should" :)
> But on the other hand, reading fonts.conf does make sense (if you know
> where to look for it). It means that you get all the font paths
> properly set by default already.

Could make sense.

>>    elseif name == "macosx" then
>>        fix("OSFONTDIR",
>> "$HOME/Library/Fonts//;/Library/Fonts//;/System/Library/Fonts//")
>>    else
>
> OSFONT[S]DIR (I always forget which one) does get set. But did you try
> to use any fonts from there? Do they work (with a recent ConTeXt
> version)?

Last beta with delicoius fonts in $HOME/Library/Fonts has worked.

Wolfgang
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to