[XeTeX] warnings with Polyglossia

Yves Codet ycodet at club-internet.fr
Wed May 7 16:39:57 CEST 2008


Le 7 mai 08 à 13:36, Ulrike Fischer a écrit :

> 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.

That's what I first did; I added the \frenchfont command thinking it  
would remove the warnings about an undefined frenchfont but they are  
still there.

Yves



More information about the XeTeX mailing list