[XeTeX] Beginner: Devanagari problems

Jonathan Kew jonathan_kew at sil.org
Fri Feb 15 12:38:41 CET 2008


On 15 Feb 2008, at 11:24 am, Sven Siegmund wrote:

> Thank you, JK, that helped. When I change the line to
>
> \font\arial="Arial Unicode MS:script=deva" at 12pt
>
> I get the desired result.

Yes, that will work, but is a "plain" font declaration at a single  
size; it won't interact with the LaTeX font styles and sizes (e.g,  
larger in headings). For more general-purpose use in xelatex, it's  
better to go through fontspec's commands like

    \setmainfont[Script=Devanagari]{Arial Unicode MS}

if you want to set the overall font for the document, or

    \newfontfamily{\arial}[Script=Devanagari]{Arial Unicode MS}

if you want a font identifier you can use for {\arial short runs} of  
text.

JK



More information about the XeTeX mailing list