From: Longmin Wang <longminwang@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: Thank you for the Chinese support, but still one question.
Date: Mon, 11 Aug 2008 13:13:20 +0800 [thread overview]
Message-ID: <20080811051320.GA13981@thinkpad> (raw)
In-Reply-To: <489C1809.2050806@wxs.nl>
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 <longminwang@gmail.com>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2008-08-11 5:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <68bfdc900808072340v4462a9f8y22060e0e7516fd13@mail.gmail.com>
2008-08-08 9:55 ` Hans Hagen
2008-08-11 5:13 ` Longmin Wang [this message]
2008-08-11 9:07 ` Hans Hagen
2008-08-11 10:17 ` Hans Hagen
2008-08-11 13:55 ` Longmin Wang
[not found] ` <68bfdc900810240612k739c36cev74883f48b209e541@mail.gmail.com>
2008-10-30 7:58 ` Fwd: " Hans Hagen
2008-10-30 9:41 ` Yanrui Li
2008-10-14 3:21 Yanrui Li
2008-10-24 12:02 ` Yue Wang
2008-10-24 13:02 ` Hans Hagen
2008-10-24 13:14 ` Yue Wang
2008-10-24 13:19 ` Yue Wang
2008-10-24 13:43 ` Yanrui Li
2008-10-24 16:09 ` Yue Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080811051320.GA13981@thinkpad \
--to=longminwang@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).