[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: |
Benjamin Slade |
Subject: |
Re: LuaTeX/luaotfload doesn't find any fonts (using fontspec) on Guix? |
Date: |
Tue, 14 May 2024 17:13:00 -0500 |
Many thanks, Nicolas. I'll try that out!
On Tue, 14 May 2024 19:35:58 +0200 (4 hours, 36 minutes, 43 seconds ago),
Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> Hello,
> I forgot to send a carbon copy to help-guix ML in my last answer, so
> I include it here.
> Nicolas Goaziou via <help-guix@gnu.org> writes:
> > Benjamin Slade <beoram@gmail.com> 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
> '{$XDG_DATA_DIRS}'.
> With it, the following "test.tex" document compiles correctly:
> --8<---------------cut here---------------start------------->8---
> \documentclass{article}
> \usepackage{fontspec}
> \setmainfont{Fantasque Sans Mono}
> \begin{document}
> Test \textbf{Test} \textit{Test}
> \end{document}
> --8<---------------cut here---------------end--------------->8---
> in the following environment
> guix shell --pure texlive-collection-latex texlive-fontspec fontconfig
> font-fantasque-sans
> with the following command
> export OSFONTDIR='{$XDG_DATA_DIRS}'; lualatex test.tex
> Thank you for the bug report!
> Regards,
> --
> Nicolas Goaziou
best,
—Benjamin
--
'(Dr Benjamin Slade (he/him)
(website . <https://lambda-y.net>)
`(pgp_fp: ,(B20E 444C FA80 B5F8 15FA 4AD8 6FBF CD68 3B05 2B84))
"sent by [mu4e] 1.12.5 in [Emacs] 30.0.50 with [org-msg] on [CachyOS]
([Linux])")
[mu4e] <https://www.djcbsoftware.nl/code/mu/mu4e.html>
[Emacs] <https://www.gnu.org/software/emacs/>
[org-msg] <https://github.com/jeremy-compostella/org-msg>
[CachyOS] <https://cachyos.org>
[Linux] <https://opensource.com/resources/linux>