On 10/22/2026 10:29 PM, Wolfgang Schuster wrote:
Am 22.10.2026 um 21:59 schrieb Pablo Rodriguez via ntg-context:
Dear list,

the following sample:

   \definefontfamily[pagella][rm][TeX Gyre Pagella][scale=1]
   \setupbodyfont[pagella]
   \starttext
   a
   \stoptext

gives the following error with current latest (2026.10.22 11:32) and
LMTX (MkIV compiles it fine):

   registered function call [1388]: ...font-syn.lua:2082: attempt to
   index a nil value (local 'data')
   stack traceback:
     ...font-syn.lua:2082: in field 'lookup'
     ...font-syn.lua:2134: in upvalue 'getlookups'
     ...font-sel.lua:404: in field '?'
     ...font-sel.lua:482: in field 'registerfiles'
     ...font-sel.lua:520: in upvalue 'action1'
     [string "local function scan1()..."]:55: in function <[string "local
     function scan1()..."]:42>

Am I missing something here or have I hit a bug?
The font database is broken.


$ mtxrun --script font --reload
fonts           | names | unable to access database cache
fonts           | names | accessing the data table failed


The following example should result in a large listing with all information in the database but it only shows "nil" with LMTX.


\starttext

\startluacode
fonts.names.load(true)
inspect(fonts.names.data) -- reports nil
\stopluacode

\stoptext


Wolfgang

new upload

(btw, it's in general nto a bad idea to update the installer .. it doesn't influence the existing instalation)

one of the pitfals is that we have luatex/mkiv and luametatex/mkxl both installed and we default to the later

you can process with context --luatex and i added that option also to mtxrun so that "mtxrun --luatex --script font" also works (and makes a database for mkiv)

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to