[XeTeX] polyglossia problem Miktex 2.9

Ulrike Fischer news3 at nililand.de
Fri Apr 15 16:39:39 CEST 2011


Am Thu, 14 Apr 2011 22:33:37 +0000 schrieb Ahmad Essam:


> Package polyglossia Error: 
> The current roman font does not contain the Arabic script!
> Please define \arabicfont with \newfontfamily.
> The code that i used:
> 
> \documentclass[a4paper,twoside,headsepline,10pt]{scrbook}
> 
> \usepackage{polyglossia}
> 
> \setmainlanguage{arabic}
> \setotherlanguage{english}
> \setmainfont[Script=Arabic,Scale=1.5,Mapping=arabicdigits]{Traditional Arabic}
> 
> \begin{document}
> 
> \chapter{المقدمة}
> 
> %arabic text here...
> السلام عليكم ورحمة الله وبركاته
> 
> \end{document}
 
> How i can fix it ?

The koma-classes set the chapter title with \sffamily, so you must
define a suitable font (with arabic script) for the sans family too.
E.g.

\setsansfont[Script=Arabic,Scale=1.5,Mapping=arabicdigits]{Traditional
Arabic}

-- 
Ulrike Fischer 



More information about the XeTeX mailing list