Re: Libertine font not seen

David Carlisle <[email protected]> Fri, 6 Feb 2026 17:05:11 +0000
Newsgroups gmane.comp.tex.texhax
Message-ID <CAEW6iOh4JrQb5uieS3u1+tVQMbVEp6Np+UJpOdmdkGQLVhKAbQ@mail.gmail.com>
--000000000000738f35064a2acbfa
Content-Type: text/plain; charset="UTF-8"

luatex doesn't use fontconfig so fc-cache won't help, and the default
setting in texlive 2025 is

% OSFONTDIR is to provide a convenient hook for allowing TeX to find
% fonts installed on the system (outside of TeX).  An empty default
% value would add "//" to the search paths, so we give it a dummy value.
OSFONTDIR = /please/set/osfontdir/in/the/environment

% OpenType outline fonts.
OPENTYPEFONTS = $TEXMFDOTDIR;$TEXMF/fonts/{opentype,truetype}//;$OSFONTDIR//


so you probably want to set OSFONTDIR to /usr/share/fonts  either in your
texmf.cnf or in the environment


On Fri, 6 Feb 2026 at 16:46, Haines Brown via texhax <[email protected]> wrote:

> The linux-libertine package is installed
>
> $ fc-cache -fv | grep libertine
> /usr/share/fonts/opentype/linux-libertine
> /usr/share/fonts/opentype/linux-libertine:
>   caching, new cache contents: 13 fonts, 0 dirs
> /usr/share/fonts/opentype/linux-libertine:
>   skipping looped directory detected
>
> # texhash
> texhash: updating /usr/share/texmf/ls-R...
> texhash: updating /var/lib/texmf/ls-R-TEXTLIVEDIST...
> texhash: updating /var/lib/texmf/-ls-R-TEXMFMAIN...
> texhash: updating /var/lib/texmf/ls-R...
> texhash: Done.
>
> I compile this code with lualatex
>
> \documentclass{article}
> \usepackage{fontspec}
> \setmainfont{Linux Libertine 0}
> \begin{document}
> ...
>
> and get
>
> /usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty
> ! Font \TU/lmr/m/n/10=[lmroman10-regular]:+tlig; at 10pt not
>   loadable
> <to be read again>
> relax
> l.116 ...lt\fontfamilydefault\seriesdefault\shapedefault
>
>
> --
>
>      Haines Brown
>
>

--000000000000738f35064a2acbfa
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>luatex doesn&#39;t use fontconfig so fc-cache won&#39=
;t help, and the default setting in texlive 2025 is</div><div><br></div><di=
v>% OSFONTDIR is to provide a convenient hook for allowing TeX to find<br>%=
 fonts installed on the system (outside of TeX).=C2=A0 An empty default<br>=
% value would add &quot;//&quot; to the search paths, so we give it a dummy=
 value.<br>OSFONTDIR =3D /please/set/osfontdir/in/the/environment<br><br></=
div><div>% OpenType outline fonts.<br>OPENTYPEFONTS =3D $TEXMFDOTDIR;$TEXMF=
/fonts/{opentype,truetype}//;$OSFONTDIR//<br><br></div><div><br></div><div>=
so you probably want to set OSFONTDIR=C2=A0to /usr/share/fonts=C2=A0 either=
 in your texmf.cnf or in the environment</div><div><br></div></div><br><div=
 class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmai=
l_attr">On Fri, 6 Feb 2026 at 16:46, Haines Brown via texhax &lt;<a href=3D=
"mailto:[email protected]">[email protected]</a>&gt; wrote:<br></div><blockquote =
class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px sol=
id rgb(204,204,204);padding-left:1ex">The linux-libertine package is instal=
led<br>
<br>
$ fc-cache -fv | grep libertine<br>
/usr/share/fonts/opentype/linux-libertine<br>
/usr/share/fonts/opentype/linux-libertine:<br>
=C2=A0 caching, new cache contents: 13 fonts, 0 dirs<br>
/usr/share/fonts/opentype/linux-libertine:<br>
=C2=A0 skipping looped directory detected<br>
<br>
# texhash<br>
texhash: updating /usr/share/texmf/ls-R...<br>
texhash: updating /var/lib/texmf/ls-R-TEXTLIVEDIST...<br>
texhash: updating /var/lib/texmf/-ls-R-TEXMFMAIN...<br>
texhash: updating /var/lib/texmf/ls-R...<br>
texhash: Done. <br>
<br>
I compile this code with lualatex<br>
<br>
\documentclass{article}<br>
\usepackage{fontspec}<br>
\setmainfont{Linux Libertine 0}<br>
\begin{document}<br>
...<br>
<br>
and get <br>
<br>
/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty<br>
! Font \TU/lmr/m/n/10=3D[lmroman10-regular]:+tlig; at 10pt not <br>
=C2=A0 loadable<br>
&lt;to be read again&gt;<br>
relax<br>
l.116 ...lt\fontfamilydefault\seriesdefault\shapedefault<br>
<br>
<br>
-- <br>
<br>
=C2=A0 =C2=A0 =C2=A0Haines Brown <br>
<br>
</blockquote></div>

--000000000000738f35064a2acbfa--