[NTG-context] Error in simplefonts

Aditya Mahajan adityam at umich.edu
Tue Oct 12 19:36:04 CEST 2010


On Sun, 10 Oct 2010, Aditya Mahajan wrote:

> Hi Wolfgang,
>
> \definesimplefont fails in the latest beta. Minimal example:
>
> \usemodule  [simplefonts][size=10pt]
> \setmainfont[Fontin][expansion=quality,protrusion=quality]
>
> \definesimplefont [NameFont]    [FontinBold][size=16pt]
>
> \starttext
> \NameFont A
> \stoptext
>
> ... gives
>
>
> <+ 
> /opt/context-minimals/texmf-context/tex/context/third/simplefonts/t-simplefonts.lua>)
> ! LuaTeX error <main ctx instance>:1: attempt to index field 'define' (a nil 
> value)
> stack traceback:
>        <main ctx instance>:1: in main chunk.
>
> system          > error on line 5 in file test.tex: LuaTeX error  ...
>
> 1     \usemodule  [simplefonts][size=10pt]
> 2
> 3     \setmainfont[Fontin][expansion=quality,protrusion=quality]
> 4
> 5 >>  \definesimplefont [NameFont]    [FontinBold][size=16pt]
> 6
> 7     \starttext
> 8     \NameFont A
> 9     \stoptext
>
>
> \dodefinesimplefont ...1("\luaescapestring {#2}")}
>                                                  \ifcase \scaledfontmode 
> \r...
> l.5 ...efont [NameFont]    [FontinBold][size=16pt]

Does anyone else get this error or is it something wrong on my machine?

Aditya


More information about the ntg-context mailing list