On Tue, Aug 17, 2010 at 05:26:19PM +0200, Hans Hagen wrote:
On 17-8-2010 4:53, Khaled Hosny wrote:
On Tue, Aug 17, 2010 at 03:08:23PM +0200, Hans Hagen wrote:
On 17-8-2010 3:00, Khaled Hosny wrote:
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).
\starttext
\definedfont[vera at 50pt] test \definedfont[file:vera.ttf at 100pt] test
\stoptext
works quite ok on my machine and the log reports:
so it must be something in the typescripts .. maybe the old names?
This works for me, but not with .otf fonts.
\starttext
\definedfont[file:STIXGeneral at 100pt] test
\stoptext
I'm getting unpredictable results here, some fonts are found and some are not, but I can't identify a pattern, I thought it is related to symbolic links but could not prove it (replacing symlinks by a copy, and updating the databases but still the font is not found by file name). -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer