Issue #297 new

sanskrit in polyglossia and xelatex doesn't work with beamer

Werner Lemberg
created an issue

[SVN TeXLive 34255]

Using xelatex, the snippet below gives the warning

! Package polyglossia Error: The current roman font does not contain the Devanagari script!
(polyglossia)                Please define \devanagarifont with \newfontfamily.

Note that it works just fine if I replace beamer with article.

\documentclass{beamer}

\usepackage{polyglossia}
\setdefaultlanguage{english}
\setotherlanguage{sanskrit}
\newfontfamily\devanagarifont[Script=Devanagari]{FreeSerif}

\begin{document}
  teacher,
 \textsanskrit{\char"0917\char"0941\char"0930\char"0941} % गुरु 
\end{document}

Comments (3)

  1. Ido Halperin

    I was able to compile that code by changing:

    \newfontfamily\devanagarifont[Script=Devanagari]{FreeSerif}
    

    into:

    \newfontfamily\devanagarifontsf[Script=Devanagari]{FreeSerif}
    

    Ido

  2. Log in to comment