6

In this question, it is detailed how to convert a project to use TrueType or OpenType fonts by switching from LaTeX to XeLaTeX. I've successfully changed my build over to use XeTeX, but I'd like to leave the default font alone. Rather, I'd like to change the fixed width font instead.

How does one do this?

Billy ONeal
  • 10,439

1 Answers1

12

Have you tried using \setmonofont[<options>]{<font name>} with fontspec?

user2473
  • 3,108
  • That's exactly what I was looking for. Thanks :) – Billy ONeal Feb 06 '12 at 03:43
  • Ah, I just realized -- it's the fontspec package that does this rather than XeTeX itself. That's not obvious... http://www.math.washington.edu/tex-archive/macros/latex/contrib/fontspec/fontspec.pdf might be useful to anyone looking in the future. – Billy ONeal Feb 06 '12 at 03:50
  • @BillyONeal: Ultimately, fontspec is only an interface to low-level XeTeX functions. – Andrey Vihrov Feb 06 '12 at 10:51