[XeTeX] strange problem with fontspec

Jonathan Kew jonathan_kew at sil.org
Thu Aug 16 13:05:24 CEST 2007


On 16 Aug 2007, at 11:52 am, Arnošt Štědrý wrote:

> Hi all,
> a have problem with fontspec and texlive 2007 on Suse 10.2.  
> Following  code
>
> \documentclass[twoside]{book}
> \usepackage[czech]{babel}
> \usepackage[xetex]{graphicx}
> \usepackage{fontspec}
> \usepackage{xunicode}
> \usepackage{xltxtra}
> %\defaultfontfeatures{Scale=MatchLowercase}
> \setmainfont[Mapping=tex-text]{Minion Pro}
>
> \renewcommand{\encodingdefault}{U}

Remove this \renewcommand; fontspec uses the encoding name "EU1", not  
"U", and it will have already set this up correctly. (Perhaps you  
have used an older version of fontspec in the past; it did originally  
use "U", but this has been updated.)

> \begin{document}
> ěščřžýáí
> \end{document}
>

Once you remove the change to \encodingdefault, I believe your file  
should work fine.

JK




More information about the XeTeX mailing list