From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/90802 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Selecting fonts using the built-in simplefonts module Date: Sun, 29 Mar 2015 21:31:30 +0200 Message-ID: <12DC7A91-4A01-4A28-B578-4327CBC64083@gmail.com> References: <20150329124001.GY30678@darjiling> <4F197B16-5B9A-41CB-8E76-AD12C68D5F66@gmail.com> <5518456A.7020008@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/mixed; boundary="===============0127745778==" X-Trace: ger.gmane.org 1427657567 4290 80.91.229.3 (29 Mar 2015 19:32:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 29 Mar 2015 19:32:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 29 21:32:28 2015 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 1YcIwb-00010F-O4 for gctc-ntg-context-518@m.gmane.org; Sun, 29 Mar 2015 21:32:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C0E4210234 for ; Sun, 29 Mar 2015 21:32:24 +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 jvWqIwe0B4b2 for ; Sun, 29 Mar 2015 21:32:23 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 06C1B10235 for ; Sun, 29 Mar 2015 21:31:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9E991101FE for ; Sun, 29 Mar 2015 21:31:53 +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 ZMV-MgKrM5AS for ; Sun, 29 Mar 2015 21:31:42 +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 DCCB1101FD for ; Sun, 29 Mar 2015 21:31:42 +0200 (CEST) Original-Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t2TJVWJj004167 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 29 Mar 2015 21:31:42 +0200 Original-Received: by wixm2 with SMTP id m2so69966315wix.0 for ; Sun, 29 Mar 2015 12:31:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=DB0Tx9odpiWtmVPKUCYPMlBCWVuyGMCcWw7zSXxXxrs=; b=yeILOoOYD2a8VNcQ1DQiBXnDGNBEuQoENhI7Xolw9G0saaCo1fdw1MolZNT9BmjA7X +/ISAVJsugrdGfeBTOsmGV33OOyAcF0qew62LCcnMgItMFKG1JB9DPXTddI5GWd3914e BmA0JXBPAlY+ovicedA1S8OArEd5q94vJfjGdvbJ+25TLNgVZUlSwp8XerXlEsI1oeX7 evpIClHWyl6weiK/E+Ufl2M2VN00H167OdH6uslzb0PtcGOfbH+SAP0ZwijYqreVAwM0 oXmkq0bMRrcZO57VkjR6MFFTFfo/z20vx9ei23sfTT/xAG6LWVmCOf8HR3XqJMyjW4sA 1Xhw== X-Received: by 10.194.24.103 with SMTP id t7mr55207705wjf.15.1427657492815; Sun, 29 Mar 2015 12:31:32 -0700 (PDT) Original-Received: from keima.localdomain (x2f349c0.dyn.telefonica.de. [2.243.73.192]) by mx.google.com with ESMTPSA id i10sm12431646wja.40.2015.03.29.12.31.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 29 Mar 2015 12:31:32 -0700 (PDT) In-Reply-To: <5518456A.7020008@googlemail.com> X-Mailer: Apple Mail (2.2070.6) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::235; country=IE; latitude=53.3478; longitude=-6.2597; http://maps.google.com/maps?q=53.3478,-6.2597&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03O9vvx1h - a8286a68ad36 - 20150329 (trained as not-spam) Received-SPF: pass (filter3-ams.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::235 as permitted sender) receiver=filter3-ams.mf.surf.net; client-ip=2a00:1450:400c:c05::235; envelope-from=; helo=mail-wi0-x235.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:90802 Archived-At: --===============0127745778== Content-Type: multipart/alternative; boundary="Apple-Mail=_581D72A0-7DAF-46BE-A42E-AB79AB416F13" --Apple-Mail=_581D72A0-7DAF-46BE-A42E-AB79AB416F13 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 29.03.2015 um 20:33 schrieb J=C3=B6rg Weger = : >=20 >> You need the familyname of the font, you use the font manager of your = OS >> to get the name. >>=20 >> \definefontfamily [junction] [rm] [Junction] >> \definefontfamily [junction] [mm] [Latin Modern Math] >>=20 >> \definefontfamily [junction-light] [rm] [Junction] >> [tf=3Dstyle:light,bf=3Dstyle:regular] >=20 > I just had it made working this way: >=20 > \definefontfamily[mainface] > [ss] > [EgalobhierFarinUrlaubodersonstwasoderwersteht] =09 > [tf=3DJunction Light, bf=3DJunction Regular] \definefontfamily [mainface] [ss] [Junction] [tf=3D* Light,bf=3D* = Regular] > It seems that as soon as you define your own weights (which you can = mix from different font families) in the fourth pair of brackets, there = can be anything in the third pair of brackets (family name). >=20 > \definefontfamily[mainface] > [sans] > [Anything] =09 > [regularfont=3DJunction Light, boldfont=3DJunction Regular] >=20 > works as well and is more self-explaining. This will only work when you set a upright font or you will get = problems. > An advantage of your way >=20 > > \definefontfamily [junction-light] [rm] [Junction] > > [tf=3Dstyle:light,bf=3Dstyle:regular] >=20 > is that you have to type the family name only once if you re-define = weights from the same family. When you use the keywords for the style you don=E2=80=99t have to look = for the right names and simpelfonts has fallbacks when the requested = style isn=E2=80=99t available. > Are there any reasons why one should not use any of all those = synonyms? What do you mean? Wolfgang= --Apple-Mail=_581D72A0-7DAF-46BE-A42E-AB79AB416F13 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Am 29.03.2015 um 20:33 schrieb J=C3=B6rg Weger <joerg73.muc@googlemail.com>:

You need the familyname of the font, you use the font manager = of your OS
to get the name.

\definefontfamily [junction] [rm] [Junction]
\definefontfamily [junction] [mm] [Latin Modern Math]

\definefontfamily [junction-light] [rm] = [Junction]
[tf=3Dstyle:light,bf=3Dstyle:regular]

I just had it made working = this way:

\definefontfamily[mainface]
[ss]
[EgalobhierFarinUrlaubodersonstwasoderwersteht] = =
= [tf=3DJunction Light, = bf=3DJunction Regular]

\definefontfamily [mainface] [ss] [Junction] [tf=3D*= Light,bf=3D* Regular]

It seems that as = soon as you define your own weights (which you can mix from different = font families) in the fourth pair of brackets, there can be anything in = the third pair of brackets (family name).

\definefontfamily[mainface]
= [sans]
= [Anything] = =
= [regularfont=3DJunction = Light, boldfont=3DJunction Regular]

works as well and is more = self-explaining.

This will = only work when you set a upright font or you will get problems.

An advantage of your way

> \definefontfamily [junction-light] [rm] = [Junction]
> = [tf=3Dstyle:light,bf=3Dstyle:regular]

is that you have to type the family name only = once if you re-define weights from the same family.

When you = use the keywords for the style you don=E2=80=99t have to look for the = right names and simpelfonts has fallbacks when the requested style = isn=E2=80=99t available.

Are there any = reasons why one should not use any of all those synonyms?

What = do you mean?

Wolfgang
= --Apple-Mail=_581D72A0-7DAF-46BE-A42E-AB79AB416F13-- --===============0127745778== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0127745778==--