LUAOTFLOAD-TOOL(1)
π¦ luaotfload-tool β text processing, bestie π
okay so you found the manual for luaotfload-tool, and honestly? iconic. it's a section 1 (general commands) page from text processing, and it's literally the tool that builds and interrogates the Luaotfload font names database. let's get into it π«Ά
β¨ NAME β¨
luaotfload-tool β generate and query the Luaotfload font names database
πΈ SYNOPSIS πΈ
luaotfload-tool [ -bcDfFiIlLnpqRSuvVhw ]
luaotfload-tool --update [ --force ] [ --quiet ] [ --verbose ]
[ --prefer-texmf ] [ --dry-run ] [ --formats=[+|-]EXTENSIONS ] [
--no-compress ] [ --no-strip ] [ --local ] [ --max-fonts=N ]
luaotfload-tool --find=FONTNAME [ --fuzzy ] [ --info ] [ --inspect ]
[ --no-reload ]
luaotfload-tool --flush-lookups
luaotfload-tool --cache=DIRECTIVE
luaotfload-tool --list=CRITERION[:VALUE] [ --fields=F1,F2,...,Fn ]
luaotfload-tool --bisect=DIRECTIVE
luaotfload-tool --help
luaotfload-tool --version
luaotfload-tool --show-blacklist
luaotfload-tool --diagnose=CHECK
luaotfload-tool --conf=FILE --dumpconf
π DESCRIPTION π
luaotfload-tool is your girl for getting at the font names database that the Luaotfload package literally cannot function without. and there are two whole general modes, so pick your vibe:
- update: update the database or rebuild it entirely;
- query: resolve a font name or display close matches.
π OPTIONS π
π₯ update mode
--update,-uβ updates the database; indexes new fonts. fresh fonts, fresh me.--force,-fβ forces a full rebuild of the database; re-indexes every single font. no shortcuts, no mercy.--local,-Lβ includes font files sitting in$PWD. heads up bestie, this causes large parts of the database to be rebuilt, so it is quite inefficient. and on top of that: if local font files are found, the database is prevented from being saved to disk, which means those local fonts need to be parsed every single time you invokeluaotfload-tool. π--no-reload,-nβ suppresses auto-updates to the database (like when--findgets handed a name it doesn't know). no surprise rebuilds, tyvm.--no-compress,-cβ do not filter the plain text version of the font index throughgzip. useful for debugging if your editor is built without zlib. vintage editor core. π--prefer-texmf,-pβ organizes the file name database so it prefers fonts in the TEXMF tree over system fonts whenever a font is installed in both places.--formats=EXTENSIONSβ which font file extensions get indexed.EXTENSIONShere is a comma-separated list of supported file extensions (otf,ttf,ttc). if the list is prefixed with a+sign, the given list is added to the currently active one;-subtracts instead. default isotf,ttf,ttc. examples, because we love a demo:--formats=-ttc,ttfwould skip TrueType fonts and font collections;--formats=otfwould scan only OpenType files;--formats=+afmincludes binary Postscript files accompanied by an AFM file.
π¦ query mode
--find=NAMEβ resolves a font name. it looks up <name> in the database and prints the file name it's mapped to.--findalso understands request syntax, i.e.--find=file:foo.otfchecks whetherfoo.otfis indexed. so versatile.--fuzzy,-Fβ shows approximate matches to the file name if the lookup flopped (requires--find). bestie behavior, honestly.--info,-iβ displays basic information for a resolved font file (requires--find).--inspect,-Iβ displays detailed information by loading the font and analyzing the font table. very slow! for the meaning of the returned fields, see the LuaTeX documentation. (requires--find).--list=CRITERIONβ shows entries, whereCRITERIONis one of the following:- the character
*, selecting all entries; - a field of a database entry, for instance
versionorformat*, according to which the output will be sorted. information in an unstripped database (see the option--no-stripabove) is nested: subfields of a record can be addressed using the->separator, e. g.file->location,style->units_per_em, ornames->sanitized->english->prefmodifiers. NB: shell syntax requires that arguments containing->be properly quoted! - an expression of the form
field:valueto limit the output to entries whose field matches value. the value can contain*to match an arbitrary number of characters.
- the character
for example, in order to output file names and corresponding versions, sorted by the font format:
./luaotfload-tool.lua --list="format" --fields="file->base,version"
this prints:
otf latinmodern-math.otf Version 1.958
otf lmromancaps10-oblique.otf 2.004
otf lmmono8-regular.otf 2.004
otf lmmonoproplt10-bold.otf 2.004
otf lmsans10-oblique.otf 2.004
otf lmromanslant8-regular.otf 2.004
otf lmroman12-italic.otf 2.004
otf lmsansdemicond10-oblique.otf 2.004
...
--fields=FIELDSβ comma-separated list of fields that should be printed. information in an unstripped database (see the option--no-stripabove) is nested: subfields of a record can be addressed using the->separator, e. g.file->location,style->units_per_em, ornames->sanitized->english->subfamily. the default isplainname,version*. (only meaningful with--list.)
π font and lookup caches
--flush-lookupsβ clears the font name lookup cache (experimental). π¬--cache=DIRECTIVEβ cache control, whereDIRECTIVEis one of the following:purge-> delete Lua files from cache;erase-> delete Lua and Luc files from cache;show-> print stats.
π§ debugging methods
--show-blacklist,-bβ shows blacklisted files (not directories).--dry-run,-Dβ don't load fonts when updating the database; scan directories only. (for debugging file system related issues.)--no-stripβ do not strip redundant information after building the database. warning: this will inflate the index to about two to three times the normal size. π--max-fonts=Nβ processes at most N font files, including fonts already indexed in the count.--bisect=DIRECTIVEβ bisection of the font database. this mode is intended as assistance in debugging the Luatex engine, especially when tracking memleaks or buggy fonts.
DIRECTIVE can be one of the following:
run-> makeluaotfload-toolrespect the bisection progress when running. combined with--updateand possibly--force, this will only process the files from the start up until the pivot and ignore the rest.start-> start bisection: create a bisection state file and initialize the low, high, and pivot indices.stop-> terminate the current bisection session by deleting the state file.good | bad-> mark the section processed last as "good" or "bad", respectively. the next bisection step will continue with the bad section.status-> print status information about the current bisection session. hint: use with higher verbosity settings for more output.
a bisection session is initiated by issuing the start directive. this sets the pivot to the middle of the list of available font files. now run luaotfload-tool with the --update flag set as well as --bisect=run: only the fonts up to the pivot will be considered. if that task exhibited the issue you are tracking, then tell Luaotfload using --bisect=bad. the next step of --bisect=run will continue bisection with the part of the files below the pivot. likewise, issue --bisect=good in order to continue with the fonts above the pivot, assuming the tested part of the list did not trigger the bug.
once the culprit font is tracked down, good or bad will have no effect anymore. run will always end up processing the single font file that was left. use --bisect=stop to clear the bisection state.
π miscellaneous
--verbose=N,-vβ set verbosity level to n, or to the number of repetitions of-v.--quietβ no verbose output (log level set to zero). shhh. π€«--log=CHANNELβ redirect log output (for database troubleshooting), whereCHANNELcan bestdout-> all output will be dumped to the terminal (default); orfile-> write to a file to the temporary directory (the name will be chosen automatically.
--version,-Vβ show version numbers of components as well as some basic information and exit.--help,-hβ show help message and exit.--diagnose=CHECKβ run the diagnostic procedureCHECK. available procedures are:files-> check Luaotfload files for modifications;permissions-> check permissions of cache directories and files;
3.
environment -> print relevant
environment and kpse variables;
repository-> check the git repository for new releases,index-> check database, display information about it.
procedures can be chained by concatenating with commas, e.g. --diagnose=files,permissions. specify thorough to run all checks.
--conf=FILEβ read the configuration from FILE. seeluaotfload.conf(%)for documentation concerning the format and available options.--dumpconfβ print the currently active configuration; the output can be saved to a file and used for bootstrapping a custom configuration files.--aliasesβ dump the font name database as a kpathsea aliases file. this option is experimental and might go away.
π FILES π
the font name database is usually located in the directory texmf-var/luatex-cache/generic/names/ ($TEXMFCACHE as set in texmf.cnf) of your TeX Live distribution as a zlib-compressed file luaotfload-names.lua.gz. the experimental lookup cache will be created as luaotfload-lookup-cache.lua in the same directory. these Lua tables are not used directly by Luaotfload, though. instead, they are compiled to Lua bytecode which is written to corresponding files with the extension .luc in the same directory. when modifying the files by hand, keep in mind that only if the bytecode files are missing will Luaotfload use the plain version instead. both kinds of files are safe to delete, at the cost of regenerating them with the next run of LuaTeX. π
β¨ SEE ALSO β¨
ok so like, the whole squad of related pages, bestie:
and then the little link-dump corner, which is honestly iconic:
- run
texdoc luaotfloadto pull up the manual for the Luaotfload package π - Luaotfload development β https://github.com/latex3/luaotfload
- LuaLaTeX mailing list β http://tug.org/pipermail/lualatex-dev/
- LuaTeX β http://luatex.org/
- ConTeXt β http://wiki.contextgarden.net
- Luaotfload on CTAN β http://ctan.org/pkg/luaotfload
π BUGS π
Tons, probably.
no like genuinely. that's the whole section. that's it. it's giving "we're aware, we're all aware, moving on" energy and honestly? relatable π
π AUTHORS π
Luaotfload was developed by the LuaLaTeX dev team (β https://github.com/lualatex/). It is currently maintained by the LaTeX Project Team at https://github.com/latex3/luaotfload π
The fontloader code is provided by Hans Hagen of Pragma ADE, Hasselt NL (β http://pragma-ade.com/) β king behaviour fr fr.
This manual page was written by Philipp Gesang <phg@phi-gamma.net> π
πΈ COPYRIGHT πΈ
GPL v2.0 β periodt.
and that's a wrap on the whole page, bestie!! every last flag, path, file, signal and footnote is in there, no cap. go forth and load them fonts. π¦
this was LUAOTFLOAD-TOOL(1) version 3.29, dated 2024-12-03 β hope she served you well, mwah π
π¦ where this page comes from
- arch rolling: texlive-doc 2026.1-1 Β· GPL
- debian trixie: texlive-luatex 2024.20250309-1
- fedora 44: texlive-luaotfload 12:svn74324-105.fc44 Β· GPL-2.0-or-later
- fedora 44: texlive-luaotfload 12:svn74324-111.fc44 Β· GPL-2.0-or-later
- opensuse-leap 16.0: texlive-luaotfload-doc 2025.221.3.29svn74324-160000.3.1 Β· GPL-2.0-or-later
- ubuntu questing: texlive-luatex 2024.20250309-1
- ubuntu resolute: texlive-luatex 2025.20260124-1
- ubuntu stonking: texlive-luatex 2026.20260711-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms