Am 10.08.2011 um 17:33 schrieb Jean-Philippe Rey:
Le 10 août 2011 à 15:24, Wolfgang Schuster a écrit :
Am 10.08.2011 um 15:01 schrieb Jean-Philippe Rey:
Thanks, that works. But makes pointless \setcjkmainfont[arialuni]. Moreover, I couldn't select different fonts for Russian and Chinese, as, given Wolfgang answer, I thought would be possible. When I try
\setmainfontfallback[Arial Unicode][range=0x3400-0x2FA1F] \setmainfontfallback[Times New Roman][range=cyrillic]
only the first one is taken into account.
Add “\setmainfont[…]” after the \setmainfontfallback lines.
I tried, but couldn't use latin modern as the main font.
You can use “CMU Serif” which support for cyrillic.
No problem for example with \setmainfont[Helvetica] or \setmainfont[Tex Gyre Pagella], but with \setmainfont[Latin Modern Roman] I get only cyrillic OR chinese depending on the order of the fallback definitions. It is the same outcome as without \setmainfont.
The module already sets “Latin Modern” as default font and when you set a fallback font the base font is loaded with the fallback font and you can’t add more fallbacks. When you use now a font different from LM all fallback are applied and you get the desired output. What you can do when you insist on LM is to postpone simplefonts font loading with the following method: \usemodule[simplefonts] \disablesimplefonts % define a fallback fonts! \setmainfontfallback[Arial Unicode] [range=0x3400-0x2FA1F] \setmainfontfallback[Times New Roman][range=cyrillic] \enablesimplefonts \setmainfont[Latin Modern Roman] \starttext Example text from the wiki: Немного русского текста для пробы. And some Chinese: --- 人民日报海外版 --- back to English \stoptext Wolfgang