On Sun, Aug 15, 2010 at 12:44:40PM -0400, Aditya Mahajan wrote:
Hi,
I cannot use xits fonts if they are placed in $HOME/.fonts.
For example, if I use
\setupbodyfont[xits]
I get a series of messages
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 \*xits11ptrmtfc*
The typescript uses file names, however ConTeXt can not load system fonts by filename. Hans, I think it would be nice to be able to load fonts by either font name or file name regardless of where they reside (I'm not sure how easy is that, though, with luaotfload and kpse setting OSFONTDIR is all what I need, since kpathsea appends it to its font searching paths).
I also tried to use the fonts with simplefonts.
\usemodule[simplefonts] \setmainfont[XITS] \setmathfont[XITS Math]
falls back to LM math while
AFAIK, simple fonts don't support math fonts beyond the pre-defined typescripts. [...]
Other fonts in $HOME/.fonts, in particular cambria, work with both methods.
\setupbodyfont[cambria]
Because the typescript references font names.
and
\usemodule[simplefonts] \setmainfont[Cambria] \setmathfont[Cambria]
both work.
Because there already a working typescript? Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer