Richard Mahoney schrieb am 13.06.2021 um 21:42:
I'm wondering if there has been a regression in the rendering of
CJK recently? I'm attaching two screenshots from the same code:
one with lmtx-20210509 (correct); and the other lmtx-20210613
(incomplete).

This is what I have in the setups:

% Support for Japanese

\setscript[hanzi]

\starttypescript[serif][sourcehanserifregular]

\definefontsynonym[Serif][name:sourcehanserifregular][features={aalt,hist,kern,liga}]

\stoptypescript

\definetypeface[sourcehanserifregular][rm][serif][sourcehanserifregular]

\define[1]\JA{\language[ja]{{\setscript[hanzi]\sourcehanserifregular #1}}}


You can try to play with this font setup, all settings within the setups-block are applied when you change the language.


% font setup for english ...

\definefontfamily [source] [rm] [Source Serif]

\switchtobodyfont [source]

% font setup for japanese

\definefontfamily [source-han] [rm] [Source Han Serif]

\startsetups [japanese]
  \switchtobodyfont [source-han]
  \setscript [hanzi]
\stopsetups

\setuplanguage
  [ja]
  [setups=japanese]

\starttext
English {\ja 日本語}
\stoptext

Wolfgang
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to