ngz pushed a commit to branch tex-team
in repository guix.

commit 4dbc4e7370b9f06a3598316f5ad8f8932f139ba5
Author: Nicolas Goaziou <[email protected]>
AuthorDate: Tue May 14 19:45:24 2024 +0200

    gnu: texlive-libkpathsea: Allow LuaLaTeX finding fonts on the system.
    
    * gnu/packages/tex.scm (texlive-libkpathsea)[arguments]<#:phases>: Set
    OSFONTDIR appropriately.
    
    Change-Id: I70386c177ce3a22061fab0b0b3b7634731a1bbda
---
 gnu/packages/tex.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 7ad68d91ec..c02fcf65e0 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -263,6 +263,8 @@
                 (("^TEXMFCNF = " lead)
                  (string-append
                   "TEXMFCNF = " #$output "/share/texmf-dist/web2c\n" lead))
+                ;; Help TeX finding fonts installed on the system.
+                (("^OSFONTDIR = .*") "OSFONTDIR = {$XDG_DATA_DIRS}\n")
                 ;; Don't truncate lines.
                 (("^error_line = .*$") "error_line = 254\n")
                 (("^half_error_line = .*$") "half_error_line = 238\n")

Reply via email to