On Tue, 17 Aug 2010, Hans Hagen wrote:

\starttext

\definedfont[file:STIXGeneral at 100pt] test

\stoptext

<c:/windows/fonts/STIXGeneral.otf>

(I don't have stix fonts so testing with xtis)

\starttext
\definedfont[file:xits-regular.otf at 100pt] test
\stoptext

gives

define fonts    > forced type otf of xits-regular not found
define fonts    > font with name xits-regular is not found
define fonts    > unknown font xits-regular, loading aborted
define fonts    > unable to define xits-regular.otf as \**thedefinedfont**

(which is consistent with the previous error message). The error message says "font with ***name*** xits-regular is not found". Not sure if name means font name or file name.

As Khalid said,

\starttext
\definedfont[name:XITS at 100pt] test
\stoptext

works as expected.

mtxrun --script font --list can find xits-regular but luatools --locate cannot. I don't think that should matter.

Some diagnostic information:

* The result of

$mtxrun --script font --list --all | grep xits-regular

xits  xits /home/adityam/.fonts/xits-math/xits-regular.otf

(No fontname, instead the font location is given).

* The result of

$mtxrun --script font --list --file --pattern=xits-regular.otf

xits normal normal normal normal xits /home/adityam/.fonts/xits-math/xits-regular.otf conflict: regular

(What does the conflict: regular flag mean)

* Custom setuptex file

TEXMFOS=/opt/context-minimals/texmf-linux
export TEXMFOS

TEXMFCACHE=$HOME/texmf-cache
export TEXMFCACHE

unset TEXINPUTS MPINPUTS MFINPUTS

PATH=$TEXMFOS/bin:$PATH
export PATH

OSFONTDIR="$HOME/.fonts;/usr/share/fonts;"
export OSFONTDIR

(No other customizations of the environments).

I have no idea what is going on here. Can it be a linux vs windows things? Can someone else on linux (with xits fonts in OSFFONTDIR) test the above examples?

Hans, is there some tracing that I can enable to see how the fonts are being searched?

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

Reply via email to