If I set language that uses cyrillic script as the default one, I can't use font Courier New
.
\documentclass{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{russian}
\setmonofont{Courier New}
\newfontfamily\cyrillicfont{Courier New}
\begin{document}
\texttt{русский язык}
\end{document}
The compiler is complaining:! Package polyglossia Error: The current roman font does not contain the Cyrillic script!
(polyglossia) Please define \cyrillicfont with \newfontfamily.
But, as you can see, Courier New
is defined with \newfontfamily\cyrillicfont{Courier New}
.
I compile with XeLaTeX.
Edit: polyglossia
package is required.