Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 395789 - dev-texlive/texlive-fontsrecommended: OTF/TTF fonts not available for xetex
Summary: dev-texlive/texlive-fontsrecommended: OTF/TTF fonts not available for xetex
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-23 08:42 UTC by Priit Laes (IRC: plaes)
Modified: 2012-02-14 13:49 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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