TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 9 down vote accepted

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

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.