# Beamer and Polyglossa font command compatibility?

The following document works fine when using document class article:

\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage[variant=british]{english}
\setotherlanguage{hebrew}
\setotherlanguage{greek}
\newfontfamily\hebrewfont{SBL Hebrew}
\newfontfamily\greekfont{SBL Greek}
\begin{document}

\section{First}
A greek word \textgreek{αταραξία} and a hebrew word \texthebrew{קֹהֶלֶת}

\end{document}


But then when I switch over to Beamer. It seems to begin to ignore the fonts (and we end up with blank characters instead of the greek or hebrew:

\documentclass{beamer}
\usepackage{polyglossia}
\setmainlanguage[variant=british]{english}
\setotherlanguage{hebrew}
\setotherlanguage{greek}
\newfontfamily\hebrewfont{SBL Hebrew}
\newfontfamily\greekfont{SBL Greek}
\begin{document}

\begin{frame}{First}
A greek word \textgreek{αταραξία} and a hebrew word \texthebrew{קֹהֶלֶת}
\end{frame}

\end{document}


Output:

Note that we can add \setsansfont{Arial} to the beamer sample, and it seems to globally tell beamer to use the Arial font, instead of the Hebrew/Greek fonts that have been specified:

• Your MWE has no \textgreek around the greek text. Your screenshot has. Which version do you use? – TeXnician Apr 17 '17 at 11:01
• I was trying several different things. Whatever makes it work. I have amended the MWE to be consistent. – Jay Apr 17 '17 at 11:03
• I cannot test as I don't have the fonts you use, but can you try \usefonttheme{professionalfonts? – samcarter_is_at_topanswers.xyz Apr 17 '17 at 12:03
• Using \usefonttheme{professionalfonts} with \setsansfont{Arial} does nothing. Using \usefonttheme{professionalfonts} without \setsansfont{Arial}, gets us back to \texthebrew{} and \textgreek{} showing blank text (It seems the default fonts for beamer don't contain characters for other languages) – Jay Apr 17 '17 at 12:29

## 1 Answer

\documentclass{beamer}
\usepackage{polyglossia}

\setmainlanguage[variant=british]{english}
\setotherlanguage{hebrew}
\setotherlanguage{greek}

\newfontfamily{\hebrewfontsf}{SBL Hebrew}
\newfontfamily{\greekfontsf}{SBL Greek}
\begin{document}

\begin{frame}{First}

A greek word \textgreek{αταραξία} and a hebrew word \texthebrew{קֹהֶלֶת}

\end{frame}

\end{document}