I want to write a document in Russian language using XeLaTeX and TeX Gyre font (for example TEX Gyre Termes). According to docs here http://mirrors.ctan.org/fonts/tex-gyre/doc/qtm-info.pdf (pp. 3-4) it supports cyrillic letters, but I cannot make it working. What i've tried:
\documentclass{article}
\usepackage[main=russian, english]{babel}
\usepackage{fontspec}
\setmainfont{TeX Gyre Termes}
\begin{document}
Hello world!
А это по-русски.
\end{document}
and
\documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage{russian}
\usepackage{fontspec}
\setmainfont{TeX Gyre Termes}
\begin{document}
Hello world!
А это по-русски.
\end{document}
(if i understand correctly, it is preffered to use babel
instead of polyglossia
)
But nothing is working. This is what I'm getting in output PDF:
What I'm doing wrong?
stixtwo
,dejavu
,libertinus
,ebgaramond
, ...