[XeTeX] fontspec and \emph

Yves Codet ycodet at club-internet.fr
Wed Oct 31 19:34:30 CET 2007


Hello.

Le 31 oct. 07 à 17:12, Kenneth Reid Beesley a écrit :

>
> If I use fontspec
>
> \usepackage{fontspec}
>
> and specify
>
> \setromanfont[Mapping=tex-text]{Doulos SIL}
>
> the problem is that Doulos SIL contains only roman glyphs
> and \emph{foo} does not come out in italic.  Is there an
> easy way with fontspec to use Doulos SIL in this way but
> have it slip into another font, e.g. Charis SIL, for rendering
> text inside \emph{}?

Unless I missed something the following command should do what you want:

\setromanfont[Mapping=tex-text,ItalicFont={Charis SIL}]{Doulos SIL}

Best wishes,

Yves



More information about the XeTeX mailing list