On Fri, Aug 08, 2008 at 11:55:21AM +0200, Hans Hagen wrote: >there was a bug as well as the fact that your definition is wrong > >% engine=luatex > >\ctxlua{fonts.collections.trace = true} > >\definefontfeature[zh][mode=node,script=hang,lang=zhs] > >\starttypescript [serif] [zhfont] > \definefontsynonym [zhserif] [AdobeSongStd-Light] >[features=zh] > \definefontsynonym [zhserifbold] [AdobeHeitiStd-Regular] >[features=zh] > \definefontfallback[serifwhatever] [lmroman10-regular] >[0x0000-0x0400] [force=yes] > \definefontfallback[serifboldwhatever][lmroman10-bold] >[0x0000-0x0400] [force=yes] >\stoptypescript > >\starttypescript [serif] [zhfont] [name] > \definefontsynonym[Serif] [zhserif] [fallbacks=serifwhatever] > \definefontsynonym[SerifBold][zhserifbold][fallbacks=serifboldwhatever] >\stoptypescript > >\starttypescript[myfont] > \definetypeface[myfont][rm][serif][zhfont] >\stoptypescript > >\usetypescript[myfont] >\setupbodyfont[myfont, rm, 12pt] > >\starttext > A 字体测试。 {\bf A 字体测试。{\tfx A 字体测试。 \bfx A 字体测试。} } >\stoptext > >works with the beta (i uploaded a new version) > >Hans
Hi, Hans, Thank you for the great works. But there is still a problem when I test a more complicated file which is attached below. In this file, both \bf and \bi give the same font lmroman10-bold. I guess the reason is that I use the same Chinese font AdobeHeitiStd-Regular for both SerifBold and SerifBoldItalic. But this cannot be avoided since Chinese fonts have much fewer typefaces than English fonts. Would you give some suggestions to solve this problem? Thanks a lot. Longmin Wang The test file: -------------------------------------- % engine=luatex \ctxlua{fonts.collections.trace = true} \definefontfeature[zh][mode=node,script=hang,lang=zhs] \starttypescript [serif] [zhfont] \definefontsynonym [zhserif][AdobeSongStd-Light][features=zh] \definefontsynonym [zhserifbold][AdobeHeitiStd-Regular][features=zh] \definefontsynonym [zhserifitalic][AdobeKaitiStd-Regular][features=zh] \definefontsynonym [zhserifbolditalic][AdobeHeitiStd-Regular][features=zh] \definefontfallback[serifwhatever][lmroman10-regular][0x0000-0x0400][force=yes] \definefontfallback[serifboldwhatever][lmroman10-bold][0x0000-0x0400][force=yes] \definefontfallback[serifitalicwhatever][lmroman10-italic][0x0000-0x0400][force=yes] \definefontfallback[serifbolditalicwhatever][lmroman10-bolditalic][0x0000-0x0400][force=yes] \stoptypescript \starttypescript [serif][zhfont][name] \definefontsynonym[Serif][zhserif][fallbacks=serifwhatever] \definefontsynonym[SerifBold][zhserifbold][fallbacks=serifboldwhatever] \definefontsynonym[SerifItalic][zhserifitalic][fallbacks=serifitalicwhatever] \definefontsynonym[SerifBoldItalic][zhserifbolditalic][fallbacks=serifbolditalicwhatever] \stoptypescript \starttypescript[myfont] \definetypeface[myfont][rm][serif][zhfont] \stoptypescript \usetypescript[myfont] \setupbodyfont[myfont, rm, 12pt] \starttext fonts {\bf fonts} {\bi fonts} {\it fonts} \stoptext -- Longmin Wang <[EMAIL PROTECTED]> Math. Dept., Nankai Univ., China http://math.nankai.edu.cn/~wanglm/ GnuPG-Key ID: 1024D/2A5CFA5C Fingerprint: 8587 1246 3AAD C185 D419 ADF1 B620 D8B8 2A5C FA5C ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________