i want to set the main font in my beamer as "Consolas" i do like this :
\documentclass{beamer}
\usepackage{fontspec}
\usetheme{Warsaw}
\begin{document}
\setmainfont{Consolas}
\begin{frame}
we discuss the ambiguities of existing security definitions and then provide a general framework for defining AKE security when involve strong adversary capabilities
\end{frame}
\end{document}
but after compile it , the font doesn't change, it is the same with that before the main font was set. what's the reason?