[luatex] loading the font database -- luaotfload

Philipp Gesang philipp.gesang at alumni.uni-heidelberg.de
Wed Jun 4 20:41:56 CEST 2014

Hi Herbert!

···<date: 2014-06-04, Wednesday>···<from: Herbert Voss>···

> One year ago it was
> local myfonts = dofile(fonts.names.path.localdir.."/otfl-names.lua")
> then it changes to
> local myfonts = dofile(fonts.names.path.path)
> But this is now also invalid. What is the correct way to load the
> font database located in
> $TEXMFVAR/luatex-cache/generic/names/luaotfload-names.lua ??

1. The function load() in the namespace fonts.names is how it’s
   done internally, e.g.:

   Note that this reads the names database from at the default
   location, you can’t pass it a path or something like that.

2. The file luaotfload-names.lua is compressed by default [0] and
   will only be read if luaotfload-names.luc (the bytecode dump)
   is missing.


[0] Unless of course you pass ``--no-compress`` to
    luaotfload-tool when updating.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://tug.org/pipermail/luatex/attachments/20140604/c8e3b1a2/attachment.bin>

More information about the luatex mailing list