Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 395789

Summary: dev-texlive/texlive-fontsrecommended: OTF/TTF fonts not available for xetex
Product: Gentoo Linux Reporter: Priit Laes (IRC: plaes) <plaes>
Component: [OLD] UnspecifiedAssignee: Alexis Ballier <aballier>
Status: RESOLVED WORKSFORME    
Severity: normal CC: eugene.shalygin, tex
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Priit Laes (IRC: plaes) 2011-12-23 08:42:24 UTC
dev-texlive/texlive-fonstrecommended installs various truetype/opentype fonts, but when using `xelatex` these fonts cannot be found...

It seems that XeTeX picks up fonts via fontconfig ie when font shows up with `fc-list` it can be used. Here's a small example:


% test.tex
\documentclass[12pt]{article}
\usepackage{fontspec}
\usepackage{lipsum}
\setmainfont{Dejavu Serif}        %% Works
% \setmainfont{TeX Gyre Pagella}  %% FAILS (from texlive-fontsrecommended)
\begin{document}
\lipsum
\end{document}

$ xelatex test.tex
Comment 1 Alexis Ballier gentoo-dev 2012-02-14 13:49:25 UTC
well, texlive-xetex installs the fontconfig conf.d file that will tell fontconfig where to find the font, additionally you have to enable texlive fonts for fontconfig with eselect fontconfig; after doing this, your example works fine here