I'm actually having the same problem with CMBright. Specifically, I have the following code:
\usepackage{cmbright} \usepackage{fontspec} \usepackage{xltxtra} \usepackage{xunicode} \newfontface\chinesefont{AR PL UKai HK} \defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text} And this doesn't seem to be mapping the -- or --- properly. Cheers, Mike On Fri, Apr 30, 2010 at 10:29 AM, Alan Munn <am...@gmx.com> wrote: > > On Apr 30, 2010, at 10:16 AM, José Carlos Santos wrote: > >> Hi all (yes, it's me again!): >> >> If I compile this file: >> >> \documentclass{article} >> \pagestyle{empty} >> \usepackage{fontspec} >> \usepackage{xunicode} >> \usepackage{xltxtra} >> \begin{document} >> --- >> \end{document} >> >> with XeLaTeX, then I get a PDF file which contains a single character, >> namely an em-dash. But if I add, say, \setmainfont{Arial} before >> \begin{document}, then what I get is ---. Why? Do I have to use \textemdash >> instead? > > No. When you specify the main font, just specify the Mapping: > > \setmainfont[Mapping=tex-text]{Arial} > > This tells xelatex to convert the latex conventions (such as --- ) (and > other things) to the proper unicode versions. > > It's set by default for CM fonts, I guess. > > Alan > > > >> >> Best regards, >> >> Jose Carlos Santos >> >> >> -------------------------------------------------- >> Subscriptions, Archive, and List information, etc.: >> http://tug.org/mailman/listinfo/xetex > > -- > Alan Munn > am...@gmx.com > > > > > > > > -------------------------------------------------- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex > -------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex