From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94630 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Handling Semi-Bold for Minion Pro in Context (LuaTeX) Date: Tue, 03 May 2016 22:13:24 +0200 Message-ID: <57290664.5030608@gmail.com> References: <57279E0A.9010605@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5813227951358780467==" X-Trace: ger.gmane.org 1462306414 21175 80.91.229.3 (3 May 2016 20:13:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 May 2016 20:13:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 03 22:13:22 2016 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 plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1axgh7-0001KT-QW for gctc-ntg-context-518@m.gmane.org; Tue, 03 May 2016 22:13:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 15E93B988; Tue, 3 May 2016 22:13:01 +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 UjC0ZciEsCrk; Tue, 3 May 2016 22:13:00 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 5A77BB994; Tue, 3 May 2016 22:13:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AF356B988 for ; Tue, 3 May 2016 22:12:58 +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 frch86Nbmoyp for ; Tue, 3 May 2016 22:12:58 +0200 (CEST) Original-Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 1353FB97D for ; Tue, 3 May 2016 22:12:47 +0200 (CEST) Original-Received: by mail-wm0-f45.google.com with SMTP id e201so161497928wme.0 for ; Tue, 03 May 2016 13:12:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=BT2cDw1d+AzoWTA4/3zmxeFwyfCcM1fG+GzI238y4mw=; b=GQOPqv3HTpLF0wozGMUPlZ/FjiK+cA/Fe1glmcow/tmoa3/qSxeyA4PSgpInlPo1Ra FFz3h+Au6IG8QlAaS+WeroWBc0TyjL3LLhlSzXRNa7b4kEjqyColo6CO9AOxYfZrVZg0 bQqYKYlsuhPWfdAAXENX+Gp0w46R/B64zZIJvagErLOdRsfjWBvkcZvzcEFgocHF6X/w nC6Qyx1opf9sKMzYfZ/01ZTQQ5NxGSILfuVDJmg5SC/dm5Fb/Ywp9VnwCvGB8H/MEFGP 76MT1VL6HwETsjcrNkYg75TSusQD/7JIP/Uldo29RxyS1PIJntFMpPmESt8YYtP3xqUw nNEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=BT2cDw1d+AzoWTA4/3zmxeFwyfCcM1fG+GzI238y4mw=; b=Xmm+1+IbTkZ7R9S1k8rST09FSCyJ7MO2y1+o3MNIyTJzsIh2oqaTEoa/Ek7IzQNGIQ Z1le0K7fZGNBRCmg6z22xtl0lYnzc88Gld515FS3JrbbEBlam6DO2bN3jNW8lczOfZ8F xq1rg6FplFT/MID9f8FHjFBphde5h2c/wIERBPZVHPxglCpvOtHeMSoprBZbSkcWUs++ egV5pLpfYuOn6YDSm3aPuFTOcxq9f0zQLeEEx9mHJEBfnrVtstVNcpmN2t9L5orqR0R+ cw/6Olq5zIW4heKh6eNItHagu90j5hLK+Pr0bpFJu7WzjgsP8Rh9oak8nf8Vt7n0disa GIgA== X-Gm-Message-State: AOPr4FXo/3loLYHM2z7x9qPjMshHiYbttr0g+LIddGZmkdSLNx0bJLCgiQsYsT5utdcaBw== X-Received: by 10.194.47.232 with SMTP id g8mr5056601wjn.103.1462306367538; Tue, 03 May 2016 13:12:47 -0700 (PDT) Original-Received: from keima.localdomain (x2f27d36.dyn.telefonica.de. [2.242.125.54]) by smtp.gmail.com with ESMTPSA id jh2sm123389wjb.39.2016.05.03.13.12.46 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 May 2016 13:12:46 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: 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:94630 Archived-At: This is a multi-part message in MIME format. --===============5813227951358780467== Content-Type: multipart/alternative; boundary="------------060708090302070807060401" This is a multi-part message in MIME format. --------------060708090302070807060401 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Antoine Cailliau > 3. Mai 2016 um 08:58 > > The \definefontfamily command is limited to the default > alternatives (tf, bf, it, sl, bi, bs ans sc). > > > Thanks for your answer, what shall I use to define non-default > alternatives? At the moment your only option is to write your own typescript for the fonts. \definefontalternative[sb] \definefontalternative[si] \starttypescript [sans] [source-sans] \definebodyfont [default] [ss] [tf=Sans sa 1, it=SansItalic sa 1, sb=SansMedium sa 1, si=SansMediumItalic sa 1, bf=SansBold sa 1, bi=SansBoldItalic sa 1] \stoptypescript \starttypescript [sans] [source-sans] \definefontsynonym [Sans] [file:SourceSansPro-Regular.otf] \definefontsynonym [SansItalic] [file:SourceSansPro-It.otf] \definefontsynonym [SansMedium] [file:SourceSansPro-Semibold.otf] \definefontsynonym [SansMediumItalic] [file:SourceSansPro-SemiboldIt.otf] \definefontsynonym [SansBold] [file:SourceSansPro-Bold.otf] \definefontsynonym [SansBoldItalic] [file:SourceSansPro-BoldIt.otf] \stoptypescript \definetypeface [source] [ss] [sans] [source-sans] [default] [features=default] \definetypeface [source] [mm] [math] [xits] [default] \setupbodyfont[source] \starttext Upright {\it Italic} {\sb SemiBold} {\si SemiBoldItalic} {\bf Bold} {\bi BoldItalic} \stoptext Wolfgang --------------060708090302070807060401 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
3.= =20 Mai 2016 um 08:58
The=20 \definefontfamily command is limited to the default alternatives=20 (tf, bf, it, sl, bi, bs ans sc).

Th= anks for your answer, what shall I use to define non-default alternatives?=C2= =A0
At the moment your only option is to write your own typescript for the=20 fonts.

\definefontalternative[sb]
\definefontalternative[si]

\starttypescript [sans] [source-sans]
=C2=A0 \definebodyfont [default] [ss]
=C2=A0=C2=A0=C2=A0 [tf=3DSans=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 sa 1,
=C2=A0=C2=A0=C2=A0=C2=A0 it=3DSansItalic=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 sa 1,
=C2=A0=C2=A0=C2=A0=C2=A0 sb=3DSansMedium=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 sa 1,
=C2=A0=C2=A0=C2=A0=C2=A0 si=3DSansMediumItalic sa 1,
=C2=A0=C2=A0=C2=A0=C2=A0 bf=3DSansBold=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 sa 1,
=C2=A0=C2=A0=C2=A0=C2=A0 bi=3DSansBoldItalic=C2=A0=C2=A0 sa 1]
\stoptypescript

\starttypescript [sans] [source-sans]
=C2=A0=C2=A0=C2=A0 \definefontsynonym [Sans]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=20 [file:SourceSansPro-Regular.otf]
=C2=A0=C2=A0=C2=A0 \definefontsynonym [SansItalic]=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 [file:SourceSansPro-It.otf]
=C2=A0=C2=A0=C2=A0 \definefontsynonym [SansMedium]=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=20 [file:SourceSansPro-Semibold.otf]
=C2=A0=C2=A0=C2=A0 \definefontsynonym [SansMediumItalic]=20 [file:SourceSansPro-SemiboldIt.otf]
=C2=A0=C2=A0=C2=A0 \definefontsynonym [SansBold]=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 [file:SourceSansPro-Bold.otf]
=C2=A0=C2=A0=C2=A0 \definefontsynonym [SansBoldItalic]=C2=A0=C2=A0=20 [file:SourceSansPro-BoldIt.otf]
\stoptypescript

\definetypeface [source] [ss] [sans] [source-sans] [default]=20 [features=3Ddefault]
\definetypeface [source] [mm] [math] [xits]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 [default]

\setupbodyfont[source]

\starttext

Upright {\it Italic} {\sb SemiBold} {\si SemiBoldItalic} {\bf Bold} {\bi BoldItalic}

\stoptext

Wolfgang
--------------060708090302070807060401-- --===============5813227951358780467== 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= --===============5813227951358780467==--