Edit 3, re-phrasing my original question:
luaotfload
expects a file /usr/local/etc/fonts/fonts.conf
. Why? This seems not to be a canonical place for any fonts.conf
in xubuntu, or is it?
luaotfload | db : Cannot open fontconfig file /usr/local/etc/fonts/fonts.conf.
Original post:
I'm trying to switch from XeLaTeX to LuaLaTeX, but every time I try to use fontspec I run into the luaotfload
database creation problem. I reproduced that with luaotfload-tool --update -vv
as shown here:
me@mycomputer:~$ luaotfload-tool --update -vv
luaotfload | db : Updating the font names database.
luaotfload | db : Font names database not found, generating new one.
luaotfload | db : This can take several minutes; please be patient.
luaotfload | db : Updating the font names database.
luaotfload | db : Blacklisting 4 files and directories.
luaotfload | db : Whitelisting 0 files.
luaotfload | db : Scanning TEXMF and $OSFONTDIR for fonts...
luaotfload | db : Scanning system fonts...
luaotfload | db : Searching in static system directories...
.../texmf-dist/tex/luatex/luaotfload/luaotfload-parsers.lua:198: stack overflow (too many arguments)
me@mycomputer:~$ luaotfload-tool -V
luaotfload | db : Font names database not found, generating new one.
luaotfload | db : This can take several minutes; please be patient.
.../texmf-dist/tex/luatex/luaotfload/luaotfload-parsers.lua:198: stack overflow (too many arguments)
Also shown here is that I'm unable to find out with luaotfload-tool -V
which version I'm running, because before telling me the tool tries to create the database and crashes.
I'm running xubuntu with TeX Live from the distro. LuaTeX declares itself like this:
This is LuaTeX, Version beta-0.79.1 (TeX Live 2015/dev/Debian) (rev 4971)
Can anyone see what's wrong here?
Edit:
According to a hint from here I did luaotfload-tool --dry-run --update --force --verbose=5
and the last lines before the crash were:
luaotfload | db : Collected 3286 files.
luaotfload | db : Scanning system fonts...
luaotfload | db : Searching in static system directories...
luaotfload | db : Cannot open fontconfig file /usr/local/etc/fonts/fonts.conf.
.../texmf-dist/tex/luatex/luaotfload/luaotfload-parsers.lua:299: stack overflow
OK, I don't have a directory /usr/local/etc/fonts
and thus no file fonts.conf
therein. No wonder it can't be opened. I have only a very limited knowledge about how Linuxes manage their fonts, but I do get a "deprecated" warning whenever I start evince
from a terminal:
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated. please move it to /home/thomas/.config/fontconfig/fonts.conf manually
Not sure if that is about the same matter, though.
Edit2: No it isn't. I managed to resolve the evince deprecated message but the luatex/fontspec database crash remains.
luaotfload-tool -V --version
. Then you can check other diagnostics commands for further surgery.-V
is just the shorthand form of--version
luaotfload-tool --dry-run --update --force --verbose=5
: No File/usr/local/etc/fonts/fonts.conf
. Still clueless, though.