From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94695 Path: news.gmane.org!not-for-mail From: Antoine Cailliau Newsgroups: gmane.comp.tex.context Subject: Handling Optical Sizes for Minion Pro in Context (LuaTeX) Date: Mon, 9 May 2016 11:23:27 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2223795841447182489==" X-Trace: ger.gmane.org 1462785858 20896 80.91.229.3 (9 May 2016 09:24:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 May 2016 09:24:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 09 11:24:07 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 1azhQ7-0002bB-3k for gctc-ntg-context-518@m.gmane.org; Mon, 09 May 2016 11:24:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 55270C138; Mon, 9 May 2016 11:24:00 +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 5FgJsmb2X-zt; Mon, 9 May 2016 11:23:59 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 91074C135; Mon, 9 May 2016 11:23:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 602E2C133 for ; Mon, 9 May 2016 11:23:59 +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 j8sfat2pgW7P for ; Mon, 9 May 2016 11:23:58 +0200 (CEST) Original-Received: from mail-lf0-f45.google.com (mail-lf0-f45.google.com [209.85.215.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 3081DC132 for ; Mon, 9 May 2016 11:23:47 +0200 (CEST) Original-Received: by mail-lf0-f45.google.com with SMTP id y84so193746224lfc.0 for ; Mon, 09 May 2016 02:23:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=KNiecOoNK6xqi2lKsvxkIR4lx07Lzvp8s4/pA8rS8KU=; b=BAASsV84nANJf45k494ysldwxoDyLdujFUCOs4FgF8jGtKPYaXNaUSRYJR+/wbpFE7 KolRHD8SZcHDD/yWjtVMQCYkacn3pUmzMkhZey79fqgvgkRtxbKdCSrppO27XM5JU/Cc Bl4NQJBqcnaazincJ+dxSo9amCrVbs86gjeRZue6xmh34/MQvL0eDopJe3JvFzNKU91B 8k0xNDH8usDba+kviv3/3nRr6bo/ST7Q9m0Gmi5m/kMB/3Fj0eby4O+5F/0ACQNseYOr ZlFoto/D2qaqZtHtG7Ltiu3Ap522dG7eKzWLkcM42f49zHoWeZRBI1LROFVSUU0HPdEB jozA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=KNiecOoNK6xqi2lKsvxkIR4lx07Lzvp8s4/pA8rS8KU=; b=PVptAc+lpVq0dUMjZlFV9+e0uIYtKhQ3bh51T2BRzDtmvACf4OXxQnprIi48PXcfps sVmTuoKA7atu3IhhXcesXw4bTDHmf519hp7YCtzaFMudoHZGoyEcNnmGDGHiCbyAjlgc 5hwgTOaK+x9EMVnltfbG9bp6aJ3wrMdzxNLltmCLUz0o9IoUy3A69/ynykmkvXaSEdVW GMf9BY3JHktEb6RM95jVLAkrOmlNZD+lAU8AoQFK8VYDPqhJh0AW5b/BGtMcSI0juIvA qPrC4et4YAHJouaqcCf8veyLTTXaHlHOEe7qUdLyd7Act7d/VqSu3rc079zMuwYoFwLW D0IQ== X-Gm-Message-State: AOPr4FXqMmhliliVQN/zvdYM7lw1r0wGkm6Kaa+G+PSuQNZw64yJAW/70RueotMZpDLBnO4MmZPypkj/lqRaxw== X-Received: by 10.25.206.130 with SMTP id e124mr14291041lfg.41.1462785827380; Mon, 09 May 2016 02:23:47 -0700 (PDT) Original-Received: by 10.112.130.197 with HTTP; Mon, 9 May 2016 02:23:27 -0700 (PDT) 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:94695 Archived-At: --===============2223795841447182489== Content-Type: multipart/alternative; boundary=001a11411f9e9fa4530532655d0d --001a11411f9e9fa4530532655d0d Content-Type: text/plain; charset=UTF-8 Hi, I'm continuing my quest for supporting Minion Pro font in my document. I defined the different sizes, as shown on contextgarden. But apparently, it does not (fully) work. The problems are : - When using \tfxx, \tfx, ... Regular font is always used, there is no switch to appropriate font. - When using \switchtobodyfont, switches are correct up to 12pt. After that, it fallback on xits-mathbold Any help is welcome :-) The compiled file : https://drive.google.com/file/d/0Bwo7pPA5_WkDdlNLbHdkMjg2dkU/view?usp=sharing The source: \definefontalternative[me] ... \starttypescript [serif] [optical] [size] % design size 8 pt, size range (6 pt, 8.4 pt] \definebodyfont [4pt,5pt,6pt,7pt,8pt] [rm] [tf=SerifCaption sa 1, it=SerifCaptionItalic sa 1, me=SerifCaptionMedium sa 1, mi=SerifCaptionMediumItalic sa 1, se=SerifCaptionSemiBold sa 1, si=SerifCaptionSemiBoldItalic sa 1, bf=SerifCaptionBold sa 1, bi=SerifCaptionBoldItalic sa 1] % design size 11 pt, size range (8.4 pt, 13 pt] \definebodyfont [9pt,10pt,11pt,12pt] [rm] [tf=SerifRegular sa 1, it=SerifRegularItalic sa 1, me=SerifRegularMedium sa 1, mi=SerifRegularMediumItalic sa 1, se=SerifRegularSemiBold sa 1, si=SerifRegularSemiBoldItalic sa 1, bf=SerifRegularBold sa 1, bi=SerifRegularBoldItalic sa 1] % design size 19 pt, size range (13 pt, 19.9 pt] \definebodyfont [14.4pt,17.3pt] [rm] [tf=SerifSubhead sa 1, it=SerifSubheadItalic sa 1, me=SerifSubheadMedium sa 1, mi=SerifSubheadMediumItalic sa 1, se=SerifSubheadSemiBold sa 1, si=SerifSubheadSemiBoldItalic sa 1, bf=SerifSubheadBold sa 1, bi=SerifSubheadBoldItalic sa 1] % design size 72 pt, size range (19.9 pt, 72 pt] \definebodyfont [20.7pt] [rm] [tf=SerifDisplay sa 1, it=SerifDisplayItalic sa 1, me=SerifDisplayMedium sa 1, mi=SerifDisplayMediumItalic sa 1, se=SerifDisplaySemiBold sa 1, si=SerifDisplaySemiBoldItalic sa 1, bf=SerifDisplayBold sa 1, bi=SerifDisplayBoldItalic sa 1] \stoptypescript \starttypescript [serif] [minionpro] \definefontsynonym [SerifRegular] [file:MinionPro-Regular.otf] [features=default] ... \stoptypescript \definetypeface [source] [rm] [serif] [minionpro] [optical] \definetypeface [source] [mm] [math] [xits] [default] \setupbodyfont[source, 11pt] \starttext ... \page {\tfxx \purefontname\font: \input ward \blank} {\tfx \purefontname\font: \input ward \blank} {\tf \purefontname\font: \input ward \blank} {\tfa \purefontname\font: \input ward \blank} {\tfb \purefontname\font: \input ward \blank} {\tfc \purefontname\font: \input ward \blank} {\tfd \purefontname\font: \input ward \blank} \page \dostepwiserecurse {6} {22} {1} {\switchtobodyfont[#1pt] \purefontname\font: \input ward \blank} \stoptext --001a11411f9e9fa4530532655d0d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I'm continuing my quest for sup= porting Minion Pro font in my document.=C2=A0

I de= fined the different sizes, as shown on contextgarden. But apparently, it do= es not (fully) work.=C2=A0

The problems are :=C2= =A0
- When using \tfxx, \tfx, ... Regular font is always used, th= ere is no switch to appropriate font.
- When using=C2=A0\switchto= bodyfont, switches are correct up to 12pt. After that, it fallback on=C2=A0= xits-mathbold

Any help is welcome :-)
<= br>
The source:

\definefontalternat= ive[me]
...

\starttypescript [serif] [op= tical] [size]

=C2=A0 % design size 8 pt, size rang= e (6 pt, 8.4 pt]
=C2=A0 \definebodyfont [4pt,5pt,6pt,7pt,8pt] [rm= ]
=C2=A0 =C2=A0 [tf=3DSerifCaption =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 sa 1,
=C2=A0 =C2=A0 =C2=A0it=3DSerifC= aptionItalic =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sa 1,
=C2=A0 =C2= =A0 =C2=A0me=3DSerifCaptionMedium =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sa 1,<= /div>
=C2=A0 =C2=A0 =C2=A0mi=3DSerifCaptionMediumItalic =C2=A0 =C2=A0 s= a 1,
=C2=A0 =C2=A0 =C2=A0se=3DSerifCaptionSemiBold =C2=A0 =C2=A0 = =C2=A0 =C2=A0 sa 1,
=C2=A0 =C2=A0 =C2=A0si=3DSerifCaptionSemiBold= Italic =C2=A0 sa 1,
=C2=A0 =C2=A0 =C2=A0bf=3DSerifCaptionBold =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sa 1,
=C2=A0 =C2=A0 =C2=A0= bi=3DSerifCaptionBoldItalic =C2=A0 =C2=A0 =C2=A0 sa 1]
=C2=A0 =C2= =A0 =C2=A0
=C2=A0 % design size 11 pt, size range (8.4 pt, 13 pt]=
=C2=A0 \definebodyfont [9pt,10pt,11pt,12pt] [rm]
=C2= =A0 =C2=A0 [tf=3DSerifRegular =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 sa 1,
=C2=A0 =C2=A0 =C2=A0it=3DSerifRegularItalic =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sa 1,
=C2=A0 =C2=A0 =C2=A0me=3DSe= rifRegularMedium =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sa 1,
=C2=A0 = =C2=A0 =C2=A0mi=3DSerifRegularMediumItalic =C2=A0 =C2=A0 sa 1,
= =C2=A0 =C2=A0 =C2=A0se=3DSerifRegularSemiBold =C2=A0 =C2=A0 =C2=A0 =C2=A0 s= a 1,
=C2=A0 =C2=A0 =C2=A0si=3DSerifRegularSemiBoldItalic =C2=A0 s= a 1,
=C2=A0 =C2=A0 =C2=A0bf=3DSerifRegularBold =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 sa 1,
=C2=A0 =C2=A0 =C2=A0bi=3DSerifRegu= larBoldItalic =C2=A0 =C2=A0 =C2=A0 sa 1]
=C2=A0 =C2=A0 =C2=A0
=C2=A0 % design size 19 pt, size range (13 pt, 19.9 pt]
= =C2=A0 \definebodyfont [14.4pt,17.3pt] [rm]
=C2=A0 =C2=A0 [tf=3DS= erifSubhead =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sa 1,
=C2=A0 =C2=A0 =C2=A0it=3DSerifSubheadItalic =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 sa 1,
=C2=A0 =C2=A0 =C2=A0me=3DSerifSubheadMedium = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sa 1,
=C2=A0 =C2=A0 =C2=A0mi= =3DSerifSubheadMediumItalic =C2=A0 =C2=A0 sa 1,
=C2=A0 =C2=A0 =C2= =A0se=3DSerifSubheadSemiBold =C2=A0 =C2=A0 =C2=A0 =C2=A0 sa 1,
= =C2=A0 =C2=A0 =C2=A0si=3DSerifSubheadSemiBoldItalic =C2=A0 sa 1,
= =C2=A0 =C2=A0 =C2=A0bf=3DSerifSubheadBold =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 sa 1,
=C2=A0 =C2=A0 =C2=A0bi=3DSerifSubheadBoldItalic = =C2=A0 =C2=A0 =C2=A0 sa 1]
=C2=A0 =C2=A0 =C2=A0
=C2=A0 = % design size 72 pt, size range (19.9 pt, 72 pt]
=C2=A0 \definebo= dyfont [20.7pt] [rm]
=C2=A0 =C2=A0 [tf=3DSerifDisplay =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sa 1,
=C2=A0 =C2=A0= =C2=A0it=3DSerifDisplayItalic =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sa 1,
=C2=A0 =C2=A0 =C2=A0me=3DSerifDisplayMedium =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 sa 1,
=C2=A0 =C2=A0 =C2=A0mi=3DSerifDisplayMediumItali= c =C2=A0 =C2=A0 sa 1,
=C2=A0 =C2=A0 =C2=A0se=3DSerifDisplaySemiBo= ld =C2=A0 =C2=A0 =C2=A0 =C2=A0 sa 1,
=C2=A0 =C2=A0 =C2=A0si=3DSer= ifDisplaySemiBoldItalic =C2=A0 sa 1,
=C2=A0 =C2=A0 =C2=A0bf=3DSer= ifDisplayBold =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 sa 1,
=C2= =A0 =C2=A0 =C2=A0bi=3DSerifDisplayBoldItalic =C2=A0 =C2=A0 =C2=A0 sa 1]
=C2=A0 =C2=A0 =C2=A0
\stoptypescript

<= div>\starttypescript [serif] [minionpro]
=C2=A0 =C2=A0 \definefon= tsynonym [SerifRegular] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0[file:MinionPro-Regular.otf] =C2=A0 =C2=A0 =C2=A0[features=3Ddefault]
=C2=A0 =C2=A0= ...
\stoptypescript

\definetypeface [so= urce] [rm] [serif] [minionpro] [optical]
\definetypeface [source]= [mm] [math] =C2=A0[xits] =C2=A0 =C2=A0 =C2=A0[default]

\setupbodyfont[source, 11pt]

\starttext

...

\page

{\tfxx \purefontname\font: \input ward \blank}
{\tfx \puref= ontname\font: \input ward \blank}
{\tf \purefontname\font: \input= ward \blank}
{\tfa \purefontname\font: \input ward \blank}
=
{\tfb \purefontname\font: \input ward \blank}
{\tfc \purefon= tname\font: \input ward \blank}
{\tfd \purefontname\font: \input = ward \blank}

\page

\doste= pwiserecurse {6} {22} {1}=C2=A0
=C2=A0 {\switchtobodyfont[#1pt]
=C2=A0 =C2=A0\purefontname\font: \input ward
=C2=A0 =C2= =A0\blank}

\stoptext
--001a11411f9e9fa4530532655d0d-- --===============2223795841447182489== 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= --===============2223795841447182489==--