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] Any ideas? Thanks, Aditya
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
On 12 oct. 2010, at 19:36, Aditya Mahajan wrote:
[…] ! 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?
Hi Aditya, I do get the same exact error with your example: here is part of the console result: ! Undefined control sequence. system > error on line 5 in file error-simplefonts.tex: Undefined control sequence ... 1 %\definesimplefont fails in the latest beta. Minimal example: 2 \usemodule [simplefonts][size=10pt] 3 \setmainfont[Fontin][expansion=quality,protrusion=quality] 4 5 >> \definesimplefont [NameFont] [FontinBold][size=16pt] 6 7 \starttext 8 \NameFont A 9 \stoptext l.5 \definesimplefont [NameFont] [FontinBold][size=16pt] ? Process aborted However as I thought this might be due to the fact that I don't have the font Fontin, I tried with another font, which I do have, CMUBright-Roman, but the result is the same. I tried also with a few previous examples in which I had tried simplefonts, they don't work anymore. All this with the latest release (ConTeXt version 2010-10-12). Best regards: OK
Hi Otared, On Tue, 12 Oct 2010, Otared Kavian wrote:
On 12 oct. 2010, at 19:36, Aditya Mahajan wrote:
Does anyone else get this error or is it something wrong on my machine?
I do get the same exact error with your example: here is part of the console result:
Thanks for confirming. I will wait for Wolfgang to look into this.
I tried also with a few previous examples in which I had tried simplefonts, they don't work anymore.
For me, the basic functionality of simplefonts is working. Only \definesimplefont gives an error. I can get around that by using \definefont instead. Aditya
Am 11.10.2010 um 03:28 schrieb Aditya Mahajan:
Hi Wolfgang,
\definesimplefont fails in the latest beta. Minimal example:
Fixed! \usemodule[simplefonts] \definesimplefont[FontinBold] [Fontin][alternative=bold, size=16pt] \definesimplefont[FontinItalic] [Fontin][alternative=italic, size=24pt] \definesimplefont[FontinRegular][Fontin][alternative=regular,size=sa 2] \starttext \FontinBold A \FontinItalic A \FontinRegular A \stoptext Wolfgang
participants (3)
-
Aditya Mahajan
-
Otared Kavian
-
Wolfgang Schuster