[lltx] new tlmgr action
Elie Roux
elie.roux at telecom-bretagne.eu
Sat May 8 14:54:44 CEST 2010
Hello,
In the version of luaotfload that will be shipped with TeXLive 2010
(http://github.com/khaledhosny/luaotfload) there is a script called
mkluatexfontdb.lua that explores and analyses the fonts in TEXMF and
OSFONTDIR (or through fc-list if OSFONTDIR is empty) and writes a
database (a lua table) in
TEXMFVAR/luatex/generic/luaotfload/names/otfl-names.lua. The info
contained in the database are important and allow the user to choose a
font with its name, as under XeTeX, through fontspec for example. The
first pass is quite heavy (~30s) as all fonts need to be analyzed with
the fontforge library of LuaTeX, but the other pass analyze only the new
fonts and remove the old ones without parsing everything, so the
execution is fast (~0.5s). The script is made to be executed with
texlua; a recent one if possible, as an old one will produce huge
memleaks. By default the script outputs a progression bar, but output
can be disabled with the -q switch. The script makes active use of the
file otfl-font-names.lua, which uses the files luaextra-file.lua,
luaextra-table.lua of the luatextra package. It uses also alt-getopt.lua
which is distributed on the ctan.
Would it be possible to:
- execute the script at the end of the installation with tlmgr?
- add a button or something in the menu to execute it? Or integrate it
in another tlmgr update button?
- have the scripts mkluatexfontdb and mkluatexfontdb-sys in the
binaries of TeXLive? (the program automatically switches to TEXMFSYSVAR
if called with a filename containing "-sys")
Thank you,
--
Elie
More information about the lualatex-dev
mailing list