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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply