xelatex doesn't work with beamer and true type font

I am trying to use a true type font in my presentation but I cannot do that withxelatex. Pdf is created although a warning is displayed but font is not chosen one. Warning is below:

(/usr/share/texmf-dist/tex/latex/beamer/translator/dicts/translator-theorem-dictionary/
translator-theorem-dictionary-English.dict)
! Extended mathchar used as mathchar (104865811).
\relax
l.7 \begin{document}

?
(./basic.nav)


A basic presentation is like below.

\documentclass{beamer}

\usepackage[no-math]{fontspec}
\setmainfont[Mapping=tex-text]{Ahem}
\usepackage[defaultmathsizes]{mathastext}

\begin{document}
\title{Title}
\author{Author}
\maketitle
\end{document}


IS it possible to use true type fonts with beamer?

EDIT: Changing class to article produces expected result.

-
Isn't the Ahem font a test font? I'm not sure why you would want it for your main font. Your document compiles for me. Have you tried a different TrueType font? What TeX distribution are you using? –  Alan Munn Dec 16 '12 at 4:22
Try using the professionalfont theme, see tex.stackexchange.com/a/26829/86 –  Loop Space Dec 16 '12 at 8:52

There is no problem with current TeXLive 2012. However, Ahem has only 4 "characters" XPE and <space> which can already be simulated by normal square rules. Then you do not need the font at all. My working example with Ahem:

\documentclass{beamer}

\usepackage[defaultmathsizes]{mathastext}
\usepackage[no-math]{fontspec}
\newfontface\ahem{Ahem}
\begin{document}
\begin{frame}
X PE \ahem X PE
\end{frame}

\end{document}


-
This works like a charm. –  Ricardo Cristian Ramirez Dec 16 '12 at 14:32