Matthijs Kooijman wrote:
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 (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.
i fixed it but that probably does not solve your missing font problem Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------