Yue Wang wrote:
> Hi, Hans:
> 
> Today I am trying to compile my new book chapter on aerosol science
> using MKIV. It works great! Thank you.
> Most commands are successful (rm, ss, mono)  after I define a
> typescript for the Chinese font.
> commands like \bfa also works.
> However, basic TeX commands like \bf, \it, don't work.
> I attach a minimal example in the mail.
> Is there anything wrong in the document? Thank you.

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

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to