<div dir="ltr"><br><br><div class="gmail_quote">On Wed, Feb 25, 2009 at 6:47 PM, Arash Zeini <span dir="ltr">&lt;<a href="mailto:azeini@yahoo.com">azeini@yahoo.com</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 class="Ih2E3d">----- Original Message ----<br>
<br>
<br>
<br>
</div>Hello,</blockquote><div><br>Hi<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
This is what I use in the preamble and it works for me:<br>
<br>
<br>
\TeXXeTstate=1</blockquote><div><br>Why do you have that? We are not typesetting right to left, Right? <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
\documentclass[xetex]{beamer}</blockquote><div><br>No need for this, it is just fine to say \documentclass{beamer} because now hyperref recognises xetex. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
\usepackage{xltxtra,fontspec,xunicode}<br>
\defaultfontfeatures{Mapping=tex-text}<br>
\setmainfont{Gentium} % your choice of font<br>
\newfontfamily{\avestan}{Gentium Basic} % For Avestan quotations<br>
[...]<br>
\begin{document}<br>
\begin{frame}{Early Veneration}<br>
    \begin{verse}<br>
      \textit{{\avestan SOMETHING IN AVESTAN}}<br>
    \end{verse}<br>
\end{frame}<br>
\end{document}</blockquote><div><br>\avestan should work with no problem because you are activating it after \begin{document}, but the question were how to set beamer so that it uses the main font which is specified via \setmainfont. In your case, we want to have Gentium. I think it is not nice to put \avestan to indicate that we want to typeset something in that font. If you want to typeset the whole documents in the font you specified via \setmainfont, you can do it either by what I said in my previous email or by having \AtBeginDocument{\setmainfont[&lt;options&gt;]{&lt;font-name&gt;}<br>
 </div></div>Hope this helps<br><br clear="all"><br>-- <br>VK<br>
</div>