Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

1 Answer 1

up vote 8 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

 
discard

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.