[XeTeX] fontspec and a single font for multiple scripts

Volker Haas volker.haas at brainbot.com
Wed Aug 18 13:31:18 CEST 2010


Hi list,

is it possible to use a single font for multiple scripts with fontspec 
without doing any font switching or altering font features?


The below sample code fails (it renders, but either bengali, latin or 
arabic is not rendered correctly):

\documentclass[a4paper,12pt]{article}
\usepackage{fontspec}
\setmainfont[Script=Bengali,Script=Latin,Script=Arabic]{FreeSerif}
\begin{document}
যুক্তব্যঞ্জন the 1. item العربية
\end{document}

Any help would be appreciated. The fontspec manual and a web search 
weren't helpful so far.

On a side note: With the latest fontspec version (2.0c) the arabic 
script is used in the above example. When using fontspec 1.18 from 
texlive 2009 bengali is used.

Regards,
Volker

-- 
volker haas                 brainbot technologies ag
fon +49 6131 2116394        boppstraße 64
fax +49 6131 2116392        55118 mainz
volker.haas at brainbot.com    http://www.brainbot.com/



More information about the XeTeX mailing list