Am 10.08.2011 um 14:09 schrieb Li Yanrui (李延瑞):
2011/8/10 Jean-Philippe Rey
: I couldn't make \setcjkmainfont to work. Here is my example:
\usemodule[simplefonts] \setmainfontfallback[Arial Unicode][range=cyrillic] \setcjkmainfont[Arial Unicode] \starttext Example text from the wiki: Немного русского текста для пробы. And some Chinese: --- 人民日报海外版 --- back to English \stoptext
There are 7 chinese characters between ---. Everything is fine with russian but the cjk characters seem to be ignored,
Because Chinese characters are not in the cyrillic area in unicode, you can try the following example:
\usemodule[simplefonts] \setmainfontfallback[arialuni][range={0x0400-0x2FA1F}] \setcjkmainfont[arialuni]
\setmainfontfallback and \setcjkmainfont use the same command to set the fallback font, the difference between both is that \setcjkmainfont has a default value for “range” which is empty for \setmainfontfallback. Wolfgang