From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/102393 Path: news.gmane.org!.POSTED!not-for-mail From: Rik Newsgroups: gmane.comp.tex.context Subject: Re: issue loading fonts Date: Tue, 23 Oct 2018 10:30:36 -0400 Message-ID: References: <869ac66e-6caa-53ee-dbe4-4ed5f6197a3f@gmx.es> <1671a3ac-1ebc-08b9-fda4-a80715c54f67@gmx.es> <20181023091732.GA108566@phare.normalesup.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1803646058975364155==" X-Trace: blaine.gmane.org 1540304957 3287 195.159.176.226 (23 Oct 2018 14:29:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 23 Oct 2018 14:29:17 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Oct 23 16:29:12 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gExgG-0000kM-NJ for gctc-ntg-context-518@m.gmane.org; Tue, 23 Oct 2018 16:29:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D63888DCD0; Tue, 23 Oct 2018 16:30:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oRIsNteNT0kf; Tue, 23 Oct 2018 16:30:51 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 861488DCCA; Tue, 23 Oct 2018 16:30:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2C7FB8DCC8 for ; Tue, 23 Oct 2018 16:30:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sq5PQo2woe7h for ; Tue, 23 Oct 2018 16:30:49 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 46E358DCC6 for ; Tue, 23 Oct 2018 16:30:39 +0200 (CEST) Original-Received: from [192.168.201.199] (cpe-24-194-22-135.nycap.res.rr.com [24.194.22.135]) by mailbackend.panix.com (Postfix) with ESMTPSA id EA8DC2D353 for ; Tue, 23 Oct 2018 10:30:37 -0400 (EDT) In-Reply-To: <20181023091732.GA108566@phare.normalesup.org> Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.20 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:102393 Archived-At: This is a multi-part message in MIME format. --===============1803646058975364155== Content-Type: multipart/alternative; boundary="------------3191A596BC5BDDBEB858F7E7" Content-Language: en-US This is a multi-part message in MIME format. --------------3191A596BC5BDDBEB858F7E7 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 10/23/2018 05:17, Arthur Reutenauer wrote: > ... > I can reproduce this. That means ConTeXt won’t let you use a > regular-weight font face as the bold version of a font family, nor an > upright font as an italic one, which in my opinion is rather a good > thing. That is simply wrong. Not only will ConTeXt happily let you do that, it is sometimes a good thing to do. In a font with many weights, you have to select appropriate faces for the medium or printing method, and using a light face for the normal and a regular weight (whatever that means for the font) for bold emphasis. Or you may want change the way emphasis is used to make a point, and reverse bold and italic in one swell foop. The example on the wiki page for \definefontfamily shows some of this in action, but ConTeXt does not get in the way of doing even sillier things: \definefontfamily [reutenauer] [rm] [sourcecodepro] [tf=style:bolditalic, it=file:kabelblack.ttf, bf=style:normal, bi=file:comic.ttf] \setupbodyfont [reutenauer] \starttext tf: {\tf \fontname\font\ \samplefile{ward}}\par it: {\it \fontname\font\ \samplefile{ward}}\par bf: {\bf \fontname\font\ \samplefile{ward}}\par bi: {\bi \fontname\font\ \samplefile{ward}}\par \stoptext -- Rik --------------3191A596BC5BDDBEB858F7E7 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 10/23/2018 05:17, Arthur Reutenauer wrote:
...
  I can reproduce this.  That means ConTeXt won’t let you use a
regular-weight font face as the bold version of a font family, nor an
upright font as an italic one, which in my opinion is rather a good
thing.

That is simply wrong.

Not only will ConTeXt happily let you do that, it is sometimes a good thing to do. In a font with many weights, you have to select appropriate faces for the medium or printing method, and using a light face for the normal and a regular weight (whatever that means for the font) for bold emphasis. Or you may want change the way emphasis is used to make a point, and reverse bold and italic in one swell foop.

The example on the wiki page for \definefontfamily shows some of this in action, but ConTeXt does not get in the way of doing even sillier things:

\definefontfamily   [reutenauer]
                    [rm]
                    [sourcecodepro]
                    [tf=style:bolditalic,
                     it=file:kabelblack.ttf,
                     bf=style:normal,
                     bi=file:comic.ttf]
\setupbodyfont      [reutenauer]
\starttext
tf: {\tf \fontname\font\ \samplefile{ward}}\par
it: {\it \fontname\font\ \samplefile{ward}}\par
bf: {\bf \fontname\font\ \samplefile{ward}}\par
bi: {\bi \fontname\font\ \samplefile{ward}}\par
\stoptext

--
Rik


--------------3191A596BC5BDDBEB858F7E7-- --===============1803646058975364155== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============1803646058975364155==--