[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LuaTeX/luaotfload doesn't find any fonts (using fontspec) on Guix?

From: Nicolas Goaziou
Subject: Re: LuaTeX/luaotfload doesn't find any fonts (using fontspec) on Guix?
Date: Tue, 14 May 2024 19:35:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13)


I forgot to send a carbon copy to help-guix ML in my last answer, so
I include it here.

Nicolas Goaziou via <> writes:

> Benjamin Slade <> writes:
>>> This doesn't seem good as the store is not writable.
>>> I read[¹] that "texmf.cnf" and "texmfcnf.lua" might be misconfigured. In
>>> particular, `kpsewhich -var-value=TEXMFCACHE' reports a store location.
>>> At the very least, I think TEXMFCACHE in "texmf.cnf" should be set to
>>> $TEXMFVAR instead of $TEXMFSYSVAR;$TEXMFVAR as it is the case currently.
>>> I'm not sure it will help, tho.
>> I will try to see if there is anything that can be done in terms of
>> local/home configuration.
>> I wonder if there's a reasonable upstream/Guix fix for the luatex
>> package definition.
> What I wrote above is actually wrong. $TEXMFSYSVAR does not point to the
> store, but to "{/gnu/...", which means "lualatex" creates a "{"
> directory in the current working directory. It is silly (and has been
> reported already[¹]), but at least the cache can be written to the disk.
> I'm not sure yet there's a problem on the Guix side. Font configuration
> can be tricky.

Actually, the problem is on the Guix side, and it will be solved in the
"tex-team" branch.

Meanwhile, the solution is to set OSFONTDIR environment variable to

With it, the following "test.tex" document compiles correctly:

--8<---------------cut here---------------start------------->8---
\setmainfont{Fantasque Sans Mono}
Test \textbf{Test} \textit{Test}
--8<---------------cut here---------------end--------------->8---

in the following environment

  guix shell --pure texlive-collection-latex texlive-fontspec fontconfig 

with the following command

  export OSFONTDIR='{$XDG_DATA_DIRS}'; lualatex test.tex

Thank you for the bug report!

Nicolas Goaziou

reply via email to

[Prev in Thread] Current Thread [Next in Thread]