Hi all,

I get an error when I run this code:

    \ctxlua{font.getfont( font.current() )}

(Complete example below.) Oddly, whether or not this fails
depends on the font. The issue does occur with both today’s beta
and Tex Live. The error message is

    error: .../context/tex/texmf-context/tex/context/base/node-inj.lua:97: 
attempt to perform arithmetic on local 'factor' (a nil value)

At the same time, in Plain the equivalent code works fine for all
fonts. Bug or feature?

Best regards
Philipp


%% working fonts:
%\setupbodyfont[iwona]
%\setupbodyfont[computer-modern-unicode]
%\setupbodyfont[antykwa-poltawskiego]
%% ... ?

%% not working:
\setupbodyfont[modern]
%\setupbodyfont[antykwa]
%\setupbodyfont[termes]
%\setupbodyfont[pagella]
%\setupbodyfont[bonum]
%% ... ?

\starttext
  foo
  \ctxlua{font.getfont( font.current() )}
  bar
\stoptext

Attachment: pgpRcL_tp4ym0.pgp
Description: PGP signature

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to