LaTeX forum ⇒ XeTeXHow can I use LaTeX fonts with fontspec?

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

How can I use LaTeX fonts with fontspec?

Postby AleCes » Wed Apr 16, 2014 4:05 pm

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?

  1. \documentclass{book}
  2. \usepackage{fontspec}
  3. \setmainfont[Mapping=tex-text]{Garamond}
  4.  
  5. \begin{document}
  6. blah
  7. \end{document}


Thanks

Return to “XeTeX”

Who is online

Users browsing this forum: No registered users and 1 guest