I think that when you run a \textrm command or a \rmfamily declaration, this calls the default document font.<br>Since you haven&#39;t declared one, XeLaTeX chooses the CM type.<br><br>Cheers!<br><blockquote style="margin: 1.5em 0pt;">

Nicolas Vaughan<br></blockquote><br><br><div class="gmail_quote">On Thu, Sep 17, 2009 at 10:18 AM, Vafa Khalighi <span dir="ltr">&lt;<a href="mailto:vafa@users.berlios.de">vafa@users.berlios.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div dir="ltr"><br><br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>\documentclass{minimal}<br>\usepackage[no-math]{fontspec}<br>\newfontfamily\test{Junicode}<br>\AtBeginDocument{\test}<br>\begin{document}<br>This is a test. 1023 \textbf{0123} \textit{0123} \textrm{0123 This is a test.}<br>


\end{document}<br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br><br><br clear="all">Should not whatever is inside \textrm{...} also appear in Junicode font? but it is not.<br>-- <br>Vafa<br>
</div>
</blockquote></div><br>