[Tex/LaTex] How to change the default typewriter font with XeTeX


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?

Best Answer

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

Related Question