XeTeXHow can I use LaTeX fonts with fontspec?

Information and discussion about XeTeX, an alternative for pdfTeX based on e-Tex
Post Reply
AleCes
Posts: 286
Joined: Sat Nov 13, 2010 9:54 pm

How can I use LaTeX fonts with fontspec?

Post by AleCes »

Hello,

I know fontenc is used to access fonts like Garamond etc... but since I'm accustomed to using XeLaTeX, I'm stuck with fontspec and this only recognizes a handful of fonts like Computer Modern and the TeX Gyre series, he cannot make use of the others. Am I forced to switch back to pdfLaTeX in order to use them?

Code: Select all

\documentclass{book}
\usepackage{fontspec}
\setmainfont[Mapping=tex-text]{Garamond}

\begin{document}
blah
\end{document}
Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply