From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84781 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Simplefonts Date: Sun, 13 Oct 2013 13:12:34 +0200 Message-ID: References: <3288E803-9426-41F1-AA62-144E5A21A085@gmail.com> <7D24BFCF-3023-47A2-A243-582C49B7FA79@gmail.com> <525A6E33.9040706@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: multipart/mixed; boundary="===============1164102224==" X-Trace: ger.gmane.org 1381662755 14538 80.91.229.3 (13 Oct 2013 11:12:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Oct 2013 11:12:35 +0000 (UTC) Cc: mailing list for ConTeXt users To: Zhichu Chen Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 13 13:12:40 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VVJbD-0001fs-Kh for gctc-ntg-context-518@m.gmane.org; Sun, 13 Oct 2013 13:12:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 011D210221; Sun, 13 Oct 2013 13:10:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9IGXewnoU3rB; Sun, 13 Oct 2013 13:09:58 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 074C6101F0; Sun, 13 Oct 2013 13:09:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D7FDD101F0 for ; Sun, 13 Oct 2013 13:09:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Psn1Z7fzJQ2l for ; Sun, 13 Oct 2013 13:09:55 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id C972C101E9 for ; Sun, 13 Oct 2013 13:09:55 +0200 (CEST) Original-Received: from mail-ea0-x232.google.com (mail-ea0-x232.google.com [IPv6:2a00:1450:4013:c01::232]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r9DBCXi3027523 for ; Sun, 13 Oct 2013 13:12:33 +0200 Original-Received: by mail-ea0-f178.google.com with SMTP id a15so2750048eae.23 for ; Sun, 13 Oct 2013 04:12:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=BpNaa9100ZpR+9O4lSqtKBEvHT4KnkMgD3fxn+GGTAw=; b=b9OIN9wRV46i3+fn7UpNWF25Mak2Nfpx+HK/8aHNG/1cDmLyxc61HuJVlj1mhDBD8u Ye2yxYe+/US4n2UlUQ1HdhoQMcvu1r/lkK4O7d7A5BViMRTzGzzkogURhD8eoQoec4n0 MhCKlbynIN6aNOGOKIOU+NxTYNmNmtzIP/ILUJXJILcQ5+icXEx/tufPbdTXyb1+9LCD oW7Blxwd8Z3JdJElW/4d5UiiipauaWdsJa8xjHJis4lnaK9CVKxKOSq5sxSWyIiUm3hC MXPm+sXiCfLj456Z5bIm/IYdqYl9YZlu9DUsNerQ10JDSKAwAiVVSh0WwalgSIqR4DY2 wmmQ== X-Received: by 10.15.53.132 with SMTP id r4mr46809822eew.5.1381662753684; Sun, 13 Oct 2013 04:12:33 -0700 (PDT) Original-Received: from keima.localdomain (x2f225fe.dyn.telefonica.de. [2.242.37.254]) by mx.google.com with ESMTPSA id z12sm139193112eev.6.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 13 Oct 2013 04:12:32 -0700 (PDT) In-Reply-To: <525A6E33.9040706@gmail.com> X-Mailer: Apple Mail (2.1510) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c01::232; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03KAzcxDC - ba61f668251b - 20131013 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl X-Spam-Report: 5.0 points; * 3.2 RCVD_ILLEGAL_IP Received: contains illegal IP address * 0.0 HTML_MESSAGE BODY: HTML included in message * 1.8 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars Xref: news.gmane.org gmane.comp.tex.context:84781 Archived-At: --===============1164102224== Content-Type: multipart/alternative; boundary="Apple-Mail=_E60B2AE7-DA41-4472-AA1C-F3F025A84C5A" --Apple-Mail=_E60B2AE7-DA41-4472-AA1C-F3F025A84C5A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 13.10.2013 um 11:56 schrieb Zhichu Chen : > Thanks for the descriptions. I have made a small test and turns out = the "regularfont" has to be assigned to something or the other = "xxxfont"s won't have any effects. >=20 > Here's my code: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > \definefallbackfamily [mainface] [serif] [adobesongstd] > [range=3D{0x00400-0x2FA1F}% > ,regularfont=3Dname:adobesongstdlight% > ,italicfont=3Dname:adobefangsongstdregular% > ,boldfont=3Dname:adobeheitistdregular% > ,bolditalicfont=3Dname:adobekaitistdregular% > ,force=3Dyes% > ,features=3Dsong% > ] > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > and if I remove the "regularfont=3D..." line, the boldface Chinese = characters will use the Adobe Song Std font as well. Same thing happened = when I used the "preset=3Dxxx" option which I don't know if it is = intended to behave like that, by the way. =20 I can fit this, it=92s a side effect for font families with a single = font, e.g. Adobe Song Std which has only the Light font but no files for = regular, bold etc. > Oh, and off the topic, can I use "effect" to assign the fonts? Like if = I have defined > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > = \defineeffect[mybold][alternative=3Dboth,rulethickness=3D\dimexpr\bodyfont= size/10\relax] > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > I would like to use this effect to apply to my bold fonts, maybe: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > \setupfontfamily [serif] [DejaVu Serif] [boldfont=3Deffect:mybold] > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > I know this has nothing to do with this module. I just thought this = might be interesting. That=92s not possible but you can the slant and extend options from = \definefontfeature. http://wiki.contextgarden.net/Simplefonts#Faking_italics_and_bold_fonts Wolfgang= --Apple-Mail=_E60B2AE7-DA41-4472-AA1C-F3F025A84C5A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 zhichu.chen@gmail.com>:=
=20 =20
Thanks for the descriptions. I have = made a small test and turns out the "regularfont" has to be assigned to something or the other "xxxfont"s won't have any effects.

Here's my code:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
\definefallbackfamily [mainface] [serif] [adobesongstd]
  [range=3D{0x00400-0x2FA1F}%
  ,regularfont=3Dname:adobesongstdlight%
  ,italicfont=3Dname:adobefangsongstdregular%
  ,boldfont=3Dname:adobeheitistdregular%
  ,bolditalicfont=3Dname:adobekaitistdregular%
  ,force=3Dyes%
  ,features=3Dsong%
  ]
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
and if I remove the "regularfont=3D..." line, the boldface Chinese characters will use the Adobe Song Std font as well. Same thing happened when I used the "preset=3Dxxx" option which I don't know if it is intended to behave like that, by the way.    =  

I can fit this, it=92s a = side effect for font families with a single font, e.g. Adobe Song Std = which has only the Light font but no files for regular, bold = etc.

Oh, and off the topic, can I use "effect" to assign = the fonts? Like if I have defined
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
= \defineeffect[mybold][alternative=3Dboth,rulethickness=3D\dimexpr\bodyfont= size/10\relax]
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
I would like to use this effect to apply to my bold fonts, = maybe:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
\setupfontfamily [serif] [DejaVu Serif] [boldfont=3Deffect:mybold]
= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
I know this has nothing to do with this module. I just thought this might be interesting.

That=92s not = possible but you can the slant and extend options from = \definefontfeature.


Wolfgang
= --Apple-Mail=_E60B2AE7-DA41-4472-AA1C-F3F025A84C5A-- --===============1164102224== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1164102224==--