# xelatex doesn't change the font with polyglossia [closed]

This is a follow-up question to Setting English font size in non-English documents in XeLatex

Well, I'm new here and this is my first question.

I've compiled the following code with xelatex but in the result the englishfont is identical with the italianfont (mainfont). (I tried other font combinations: the englishfont is always identical with the mainfont.)

\documentclass{article}

\usepackage{fontspec}
\setmainfont{Times New Roman}
\newfontfamily{\englishfont}{DejaVu Sans}

\usepackage{polyglossia}
\setmainlanguage{italian}
\setotherlanguage{english}

\begin{document}
Testo in italiano.

\begin{english}
Text in English.
\end{english}
\end{document}

-

## closed as too localized by doncherry, lockstep, Andrew Swann, Kurt, ThorstenDec 6 '12 at 16:26

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Welcome to TeX.sx! Neat MWE, especially for a rookie. The only problem: I can't reproduce your problem; your code gives me i.stack.imgur.com/JOnnO.png. I'm using MiKTeX 2.9. Have you made sure all your packages are up-to-date? –  doncherry Dec 5 '12 at 20:09
Thanks a lot. You're right - my texlive distribution was from 2009. Now it (distribution of 2012) works. –  steffan Dec 6 '12 at 11:53
Glad your problem was solved. Since it was pretty specific to your configuration and, in a way, your individual point in time, we closed it as too localized. –  doncherry Dec 6 '12 at 18:29