On Tue, 15 Oct 2013 21:53:20 +0200
Pablo Rodriguez
On 10/15/2013 08:46 PM, luigi scarso wrote:
On Tue, Oct 15, 2013 at 7:44 PM, Pablo Rodriguez wrote: [...] Since this is the default directory for fonts in Linux, wouldn’t it be possible to set it by default in ConTeXt Standalone for Linux?
imho, it's always better to keep separate "os system fonts" and context (or texlive).
Luigi,
many thanks for your reply.
From you reply, I think I haven’t expressed myself right.
I mean adding the Linux option to the lines:
do local osfontdir=osgetenv("OSFONTDIR") if osfontdir and osfontdir~="" then elseif osname=="windows" then ossetenv("OSFONTDIR","c:/windows/fonts//") elseif osname=="macosx" then
ossetenv("OSFONTDIR","$HOME/Library/Fonts//;/Library/Fonts//;/System/Library/Fonts//") + elseif osname=="linux" then + ossetenv("OSFONTDIR","$HOME/.fonts//;/usr/share/fonts//") end end
So it would work out of the box also for Linux users. (Not sure whether this is right, I only guess so [and directory listing is by no means complete.)
On my system it is NOT /usr/share/fonts so this would be inappropriate. And, as Luigi suggested, it is not always a very good idea to mix OS system fonts and TeX fonts. Currently, the user can achieve this if desired by setting OSFONTDIR. Alan