The Cyrillic characters in pdf are not appear if using the XeLaTeX (from Why does \usepackage[T2A]{fontenc} take over?):
\documentclass{article}
\usepackage[T2A,T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[russian,english]{babel}
\renewcommand{\familydefault}{\sfdefault}
\begin{document}
\renewcommand{\sfdefault}{PTSans-TLF}\normalfont
\section{PTSans}
Todd is a cat. \textcyrillic{у меня есть машина. я очень харашо.}
\renewcommand{\sfdefault}{fds}\normalfont
\section{Droid}
Todd is a cat. \textcyrillic{у меня есть машина. я очень харашо.}
\renewcommand{\sfdefault}{fco}\normalfont
\section{Comforta}
Todd is a cat. \textcyrillic{у меня есть машина. я очень харашо.}
\renewcommand{\sfdefault}{fca}\normalfont
\section{Cantarell}
Todd is a cat. \textcyrillic{у меня есть машина. я очень харашо.}
\renewcommand{\sfdefault}{iwona}\normalfont
\section{Iwona}
Todd is a cat. \textcyrillic{у меня есть машина. я очень харашо.}
\renewcommand{\sfdefault}{fos}\normalfont
\section{OpenSans}
Todd is a cat. \textcyrillic{у меня есть машина. я очень харашо.}
\end{document}
——-EDIT——–
I need to get these aims:
- XeLaTeX engine
- use the condensed iwona fonts in mathematics environment
- use the condensed iwona fonts for main text (including both Latin and Cyrillic letters)
- use the
txtt
fonts typesetting URL - use the
txtt
fonts instead defaultttfamily
Here is my code:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[no-math]{fontspec}
\renewcommand*\ttdefault{txtt}
\usepackage[T1]{fontenc}
\usepackage[condensed,math]{iwona}
\usepackage[russian,english]{babel}
\usepackage{url}
\begin{document}
\url{http://google.com}\\
\texttt{TXTT-FONTS}\\
\textcyrillic{Ломоно́сов}\\
$\sin^2 x+1$\\
today\\
\end{document}
Maybe I'm missing something, so I'd be happy to be pushed in the right direction.
Best Answer
The
txtt
font is not suitable for usage withfontspec
; also,inputenc
should not be used and you have to select a main font with support for Cyrillic, as the default Latin Modern fonts haven't it.The
iwona
package should be loaded beforefontspec
andfontenc
is useless in this context. Then you need to choose Iwona withfontspec
commands.