[XeTeX] selecting feature in Devanagari MT with fontspec

Yves Codet ycodet at club-internet.fr
Mon Aug 8 09:38:49 CEST 2005


Hello.

I had a closer look at the output. With the following commands:

(1)
\setromanfont{Lucida Grande}
\newfontinstance\devanagarifont[Script=Devanagari]{Sanskrit 2003}
\newcommand{\dev}[1]{\language=\sanskrit\devanagarifont #1}

(2)
\setromanfont{Lucida Grande}
\newfontinstance\devanagarifont[Ligatures=Rare,BoldFont={Devanagari MT 
Bold},ItalicFont={Devanagari MT Bold },BoldItalic={Devanagari MT 
Bold}]{Devanagari MT}
\newcommand{\dev}[1]{\language=\sanskrit\devanagarifont #1}

XeTeX doesn't use the font called by \setromanfont when a \dev 
environment is closed, except for titles. In case (1) the Latin text 
appears but it uses Sanskrit 2003. And in case (2) it doesn't appear, 
since Devanagari MT has no Latin letters.

Is there anything wrong with these commands?

Best wishes,

Yves



More information about the XeTeX mailing list