I am able to set default text font using \newfontfamily\mainfont{}
.
Here is an example.
\documentclass{article}
\usepackage{fontspec}
\newfontfamily\mainfont{DejaVu Sans}
\begin{document}
Foo
\texttt{Bar}
\end{document}
How can I similarly set the default monospace font that is used for text rendered with \texttt{}
?
\setmainfont{DejaVu Sans}
, the monospaced font (for\texttt
) with\setmonofont{...<font name>...}