* Error in simplefonts
@ 2010-10-11 1:28 Aditya Mahajan
2010-10-12 17:36 ` Aditya Mahajan
2010-10-13 10:22 ` Wolfgang Schuster
0 siblings, 2 replies; 6+ messages in thread
From: Aditya Mahajan @ 2010-10-11 1:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Error in simplefonts
2010-10-11 1:28 Error in simplefonts Aditya Mahajan
@ 2010-10-12 17:36 ` Aditya Mahajan
2010-10-12 17:48 ` Otared Kavian
2010-10-13 10:22 ` Wolfgang Schuster
1 sibling, 1 reply; 6+ messages in thread
From: Aditya Mahajan @ 2010-10-12 17:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Error in simplefonts
2010-10-12 17:36 ` Aditya Mahajan
@ 2010-10-12 17:48 ` Otared Kavian
2010-10-12 18:51 ` Aditya Mahajan
0 siblings, 1 reply; 6+ messages in thread
From: Otared Kavian @ 2010-10-12 17:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1858 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 3578 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Error in simplefonts
2010-10-11 1:28 Error in simplefonts Aditya Mahajan
2010-10-12 17:36 ` Aditya Mahajan
@ 2010-10-13 10:22 ` Wolfgang Schuster
2010-10-13 14:14 ` Aditya Mahajan
1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2010-10-13 10:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-10-13 14:14 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-11 1:28 Error in simplefonts Aditya Mahajan
2010-10-12 17:36 ` Aditya Mahajan
2010-10-12 17:48 ` Otared Kavian
2010-10-12 18:51 ` Aditya Mahajan
2010-10-13 10:22 ` Wolfgang Schuster
2010-10-13 14:14 ` Aditya Mahajan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).