[XeTeX] warnings with Polyglossia

Ulrike Fischer news2 at nililand.de
Wed May 7 13:36:11 CEST 2008


Am Wed, 7 May 2008 12:24:41 +0200 schrieb Yves Codet:

> Hello.
> 
> If I typeset a document such as this one:
> %%%%%%%%%%%%%%%%%%%%
> \documentclass[10pt,a4paper]{book}
> \usepackage{polyglossia}
> \usepackage{fontspec}
> \setdefaultlanguage{french}
> \newfontfamily\frenchfont{Charis SIL}
> \setmainfont{Charis SIL}
> 
> \begin{document}
> 
> \chapter{Chapitre}
> 
> Texte.
> 
> \end{document}
> %%%%%%%%%%%%%%%%%%%%
> 
> for each chapter title I get a warning such as:
> 
> Package polyglossia Warning:  french at font is not defined
>   in gloss-french.ldf on input line 10.
> 
> Should "frenchfont" be defined in another way than the above?
> 
> Another question is the following: "\newfontfamily\frenchfont{Charis  
> SIL}" and "\setmainfont{Charis SIL}" seem to be redundant, but if I  
> comment out "\setmainfont{Charis SIL}" the text is typeset with  
> another font than Charis (I don't know which one). Are both commands  
> necessary?

As far as I can see from the code \frenchfont is unnessary/unused. The
<language>font is only needed for other scripts like arabic. Simply set
the fonts with \setmainfont etc.



-- 
Ulrike Fischer 



More information about the XeTeX mailing list