From: Benjamin Slade <beoram@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: help-guix@gnu.org
Subject: Re: LuaTeX/luaotfload doesn't find any fonts (using fontspec) on Guix?
Date: Tue, 14 May 2024 17:13:00 -0500 [thread overview]
Message-ID: <87ikzg6o0j.fsf@gmail.com> (raw)
In-Reply-To: <87wmnwthxd.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Tue, 14 May 2024 19:35:58 +0200")
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>
prev parent reply other threads:[~2024-05-14 22:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-07 16:34 LuaTeX/luaotfload doesn't find any fonts (using fontspec) on Guix? Benjamin Slade
2024-05-07 17:25 ` Nicolas Goaziou via
2024-05-09 15:23 ` Benjamin Slade
2024-05-09 16:21 ` Nicolas Goaziou via
2024-05-14 17:35 ` Nicolas Goaziou via
2024-05-14 22:13 ` Benjamin Slade [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ikzg6o0j.fsf@gmail.com \
--to=beoram@gmail.com \
--cc=help-guix@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).