Hi,

after upgrading to the latest context beta, I'm fased with the following lua
error:

  define font | forced type otf of lmmono8-regular not found
  define font | font with name lmmono8-regular is not found
  [...]
  ! LuaTeX error /usr/share/texmf/tex/context/base/math-vfu.lua:366: table index
  is nil
  stack traceback:
          /usr/share/texmf/tex/context/base/math-vfu.lua:366: in function
          </usr/share/texmf/tex/context/base/math-vfu.lua:261>
          (tail call): ?
          (tail call): ?
          /usr/share/texmf/tex/context/base/font-def.lua:549: in function 'read'
          /usr/share/texmf/tex/context/base/font-ctx.lua:359: in function 
'command_2'
          <main ctx instance>:1: in main chunk.

Apparently there is still some font cache somewhere that's not updated, and
context says it has a font that is not found. However, a bit further down,
this crashes.

The cause of this is that the "nullfont" is returned as defined in
font-ini.lua, not just nil:

  fonts.ids[0] = { -- nullfont
      characters   = { },                                                       
 
      descriptions = { },                                                       
 
  }

This font has no name, but math-vfu.lua uses fs.name unconditionally. Either
math-vfu.lua should be fixed to test for this, or a line should be added to
the null font above:

  name = "",

I've tested the latter, and it solves my immediate problem.

Gr.

Matthijs

Attachment: signature.asc
Description: Digital 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