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?
Best Answer
At the moment you only set the main font of the document. You need to specify the sans serif font family because that's what the »beamer« classes uses in the end.