* Lua error on unailable fonts
@ 2009-10-29 15:38 Matthijs Kooijman
2009-10-29 15:57 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Matthijs Kooijman @ 2009-10-29 15:38 UTC (permalink / raw)
To: Mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1499 bytes --]
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 #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 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] 2+ messages in thread
* Re: Lua error on unailable fonts
2009-10-29 15:38 Lua error on unailable fonts Matthijs Kooijman
@ 2009-10-29 15:57 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2009-10-29 15:57 UTC (permalink / raw)
To: Mailing list for ConTeXt users
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
> </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.
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
-----------------------------------------------------------------
___________________________________________________________________________________
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] 2+ messages in thread
end of thread, other threads:[~2009-10-29 15:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-29 15:38 Lua error on unailable fonts Matthijs Kooijman
2009-10-29 15:57 ` Hans Hagen
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).