Re: Libertine font not seen

David Carlisle <[email protected]> Sat, 7 Feb 2026 12:35:43 +0000
Newsgroups gmane.comp.tex.texhax
Message-ID <CAEW6iOiQi5NwVypiOLbQU0bjAD_Wt3L8h+333mkgUM8rcFgPtQ@mail.gmail.com>
--000000000000a1b498064a3b255f
Content-Type: text/plain; charset="UTF-8"

On Sat, 7 Feb 2026 at 11:44, Hefferon, Jim S. <[email protected]> wrote:

> David said:
>
> > you probably want to set OSFONTDIR to /usr/share/fonts  either in your
> texmf.cnf or in the environment
>
> That might be worth adding to the message a person gets when they
> initially install, which tells them to set PATH and suggests also MANPATH
> and INFOPATH.
>
>
possibly, although unlike setting PATH (which is basically needed to make
things work at all) setting OSFONTDIR has advantages and disadvantages, as
using the system fonts makes things somewhat less portable as different
systems have different fonts...

In particular one thing I missed in my initial answer is that linux
libertine is included in texlive so with a
reasonably complete texlive installation you don't need to do anything

\documentclass{article}

\usepackage{fontspec}
\setmainfont{Linux Libertine O}
\begin{document}
abc
\end{document}


should  work (using
/usr/local/texlive/2025/texmf-dist/fonts/opentype/public/libertine/LinLibertine_R.otf
)

David

Jim
>

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

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote g=
mail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, 7 Feb 2=
026 at 11:44, Hefferon, Jim S. &lt;<a href=3D"mailto:[email protected]">j=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote=
" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);=
padding-left:1ex">David said:<br>
<br>
&gt; you probably want to set OSFONTDIR to /usr/share/fonts=C2=A0 either in=
 your texmf.cnf or in the environment<br>
<br>
That might be worth adding to the message a person gets when they initially=
 install, which tells them to set PATH and suggests also MANPATH and INFOPA=
TH.<br>
<br></blockquote><div><br></div><div>possibly, although unlike setting PATH=
 (which is basically needed to make things work at all) setting OSFONTDIR h=
as advantages and disadvantages, as using the system fonts makes things som=
ewhat=C2=A0less portable as different systems have different fonts...</div>=
<div><br></div><div>In particular one thing I missed in my initial answer i=
s that linux libertine is included in texlive so with a</div><div>reasonabl=
y complete texlive installation you don&#39;t need to do anything</div><div=
><br></div><div>\documentclass{article}<br><br>\usepackage{fontspec}<br>\se=
tmainfont{Linux Libertine O}<br>\begin{document}<br>abc<br>\end{document}<b=
r><br></div><div><br></div><div>should=C2=A0 work (using=C2=A0</div><div>/u=
sr/local/texlive/2025/texmf-dist/fonts/opentype/public/libertine/LinLiberti=
ne_R.otf</div><div>)</div><div><br></div><div>David</div><div><br></div><bl=
ockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-lef=
t:1px solid rgb(204,204,204);padding-left:1ex">
Jim<br>
</blockquote></div></div>

--000000000000a1b498064a3b255f--