From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93674 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: How to use Helvetica Neue Light (OS X)? Date: Thu, 11 Feb 2016 11:32:14 +0100 Message-ID: <56BC632E.4020508@gmail.com> References: <56BB31A0.8020705@wxs.nl> <56BB4591.3070106@wxs.nl> <56BB54E5.6050200@gmx.es> <56BB97CF.9040601@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2105665461684087653==" X-Trace: ger.gmane.org 1455186784 20959 80.91.229.3 (11 Feb 2016 10:33:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Feb 2016 10:33:04 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 11 11:32:51 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 1aToYM-0007k1-NF for gctc-ntg-context-518@m.gmane.org; Thu, 11 Feb 2016 11:32:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 90ECA6A8E; Thu, 11 Feb 2016 11:32:32 +0100 (CET) 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 iQUp3si1gxFC; Thu, 11 Feb 2016 11:32:29 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id DD2C06A90; Thu, 11 Feb 2016 11:32:29 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 608576A8E for ; Thu, 11 Feb 2016 11:32:29 +0100 (CET) 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 GsA8cqxiT596 for ; Thu, 11 Feb 2016 11:32:28 +0100 (CET) Original-Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) (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 C96586A8D for ; Thu, 11 Feb 2016 11:32:18 +0100 (CET) Original-Received: by mail-wm0-f54.google.com with SMTP id g62so62581732wme.0 for ; Thu, 11 Feb 2016 02:32:18 -0800 (PST) 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:content-type; bh=NwGeKz3ESKJauCjQTU9fY993m/aGCKMc4MpN9Kkf+2w=; b=gGKrfYBz3RfQiePeTMRMRp80Mhd0FkMI3DWsNYXMQyYKkwqYIVAf2kSpQkFHPKoOGb ZGOmeL6yb1HiXoEoP95nkEcGCBjZ0nddSdRbfwXuzdCJluuShpP0kd5XH2mzrWEFUKGK 0nmvEc2WbO2lPC2XtsdnaktZOwh9soR2+RDJx9Qga94FvDE/kapFESYwXo0CByPVovIA dx0QepjK4T+v5ARB1k68a3pGFpqXNzu+xkXzfSt3CVT55BWSm3KK73s9QcxJ0Tuf12zy Y3O6D320MMeJtsI29iCR27qKkJXVg0CmTaPtr/YyROAElAmYrQ1AdWOGcPYvkoIPoAzJ W8Cg== 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:content-type; bh=NwGeKz3ESKJauCjQTU9fY993m/aGCKMc4MpN9Kkf+2w=; b=msLE1KSIOTdCGpTMPTPzVwRPYv/+dAghYAs2Zk/0mAUxkeXE80h1ucgkzAHBSB4hlt VSqWO0VE2bjkSlGdeJWqnaUwV26ipgR9ga17R30CJhoS/dmtWu8FV6wnmDaEXYpStxUT go84LeyUzLeodj/L+78o+GwlRlqWAs8ojLbKITCtYRugOuGGn1DnvP+OSnn37Q5flqIk Fx+/KiL0JiTurA83hzRfuKwGEqXJeMolajT7d1Rj8uJJTlvfexRidoyXrw0uvcDSnbEu nqcmFAAiCG9Nyj64bb0scAe4iXquzsxfpRBiLoMyarAbOs4jy4/V62wsYHBTAlc9Jk/m bT1g== X-Gm-Message-State: AG10YOS8PLg/9QPoh0bj4fGpKm6+MXQmj+3QqzArt+6+KiCbyUZ18UrInwtJCGIijsBrwg== X-Received: by 10.28.88.81 with SMTP id m78mr17436170wmb.58.1455186738468; Thu, 11 Feb 2016 02:32:18 -0800 (PST) Original-Received: from keima.localdomain (x2f2e8ba.dyn.telefonica.de. [2.242.232.186]) by smtp.gmail.com with ESMTPSA id b203sm7363239wmh.8.2016.02.11.02.32.17 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 11 Feb 2016 02:32:17 -0800 (PST) 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:93674 Archived-At: This is a multi-part message in MIME format. --===============2105665461684087653== Content-Type: multipart/alternative; boundary="------------060708080106000801050206" This is a multi-part message in MIME format. --------------060708080106000801050206 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Nicola > 11. Februar 2016 um 10:31 > On 2016-02-11 08:36:12 +0000, Taco Hoekwater said: > > [...] > > 8) Run `mtxrun --script font --reload --force`. After that, mtxrun > shows me the same output as in step 4. Typesetting the document > several times always results in `unknown font`. Document and log > below. > > Nicola > > \definefontfamily [myfamily] [serif] [Avenir Next Condensed] > \setupbodyfont[myfamily] > \starttext > \tf Regular, \it Italic \bf Bold and \bi BoldItalic > \stoptext The \definefontfamily uses currently a fixed value for the font width but I won=E2=80=99t have time for this before the weekend because I have = to check a few (hundred!) fonts for the best solution. Besides the \definefontfamily you can also write the required typescripts yourself, below is a example for the normal Avenir Next fonts. %%%% begin example \starttypescript[sans][avenir] \setups[font:fallback:sans] \definefontsynonym [Sans] [Avenir Next(AvenirNext-Regular)= ] \definefontsynonym [SansItalic] [Avenir Next(AvenirNext-Italic)] \definefontsynonym [SansBold] [Avenir Next(AvenirNext-Bold)] \definefontsynonym [SansBoldItalic] [Avenir=20 Next(AvenirNext-BoldItalic)] \stoptypescript \starttypescript[sans][avenir-light] \setups[font:fallback:sans] \definefontsynonym [Sans] [Avenir=20 Next(AvenirNext-UltraLight)] \definefontsynonym [SansItalic] [Avenir=20 Next(AvenirNext-UltraLightItalic)] \definefontsynonym [SansBold] [Avenir Next(AvenirNext-Medium)] \definefontsynonym [SansBoldItalic] [Avenir=20 Next(AvenirNext-MediumItalic)] \stoptypescript \definetypeface [avenir] [ss] [sans] [avenir] [default] [features=3Ddefau= lt] \definetypeface [avenir] [mm] [math] [modern] [default] \definetypeface [avenir-light] [ss] [sans] [avenir-light] [default]=20 [features=3Ddefault] \definetypeface [avenir-light] [mm] [math] [modern] [default] \setupbodyfont[avenir] \starttext \input knuth {\bf \input knuth } \switchtobodyfont[avenir-light] \input knuth {\bf \input knuth } \stoptext %%%% end example BTW: ConTeXts already provides typescripts for many OS X fonts but they=20 are a little bit dated. Wolfgang --------------060708080106000801050206 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
11= .=20 Februar 2016 um 10:31
On 2016-02-11 08:36:12 +0000= ,=20 Taco Hoekwater said:

[...]

8) Run `mtxrun --script font --reload --force`. After that, mtxrun
=C2=A0 shows me the same output as in step 4. Typesetting the documen= t
=C2=A0 several times always results in `unknown font`. Document and l= og
=C2=A0 below.

Nicola

\definefontfamily [myfamily] [serif] [Avenir Next Condensed]
\setupbodyfont[myfamily]
\starttext
\tf Regular, \it Italic \bf Bold and \bi BoldItalic
\stoptext
The \definefontfamily uses currently a fixed value for the font width
but I won=E2=80=99t have time for this before the weekend because I have = to
check a few (hundred!) fonts for the best solution.


Besides the \definefontfamily you can also write the required=20 typescripts
yourself, below is a example for the normal Avenir Next fonts.

%%%% begin example
\starttypescript[sans][avenir]
=C2=A0=C2=A0=C2=A0 \setups[font:fallback: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 [Avenir=20 Next(AvenirNext-Regular)]
=C2=A0=C2=A0=C2=A0 \definefontsynonym [SansItalic]=C2=A0=C2=A0=C2=A0=C2=A0= [Avenir Next(AvenirNext-Italic)]
=C2=A0=C2=A0=C2=A0 \definefontsynonym [SansBold]=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 [Avenir Next(AvenirNext-Bold)]
=C2=A0=C2=A0=C2=A0 \definefontsynonym [SansBoldItalic] [Avenir=20 Next(AvenirNext-BoldItalic)]
\stoptypescript

\starttypescript[sans][avenir-light]
=C2=A0=C2=A0=C2=A0 \setups[font:fallback: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 [Avenir=20 Next(AvenirNext-UltraLight)]
=C2=A0=C2=A0=C2=A0 \definefontsynonym [SansItalic]=C2=A0=C2=A0=C2=A0=C2=A0= [Avenir=20 Next(AvenirNext-UltraLightItalic)]
=C2=A0=C2=A0=C2=A0 \definefontsynonym [SansBold]=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 [Avenir Next(AvenirNext-Medium)]
=C2=A0=C2=A0=C2=A0 \definefontsynonym [SansBoldItalic] [Avenir=20 Next(AvenirNext-MediumItalic)]
\stoptypescript

\definetypeface [avenir] [ss] [sans] [avenir] [default]=20 [features=3Ddefault]
\definetypeface [avenir] [mm] [math] [modern] [default]

\definetypeface [avenir-light] [ss] [sans] [avenir-light] [default]=20 [features=3Ddefault]
\definetypeface [avenir-light] [mm] [math] [modern]=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 [default]

\setupbodyfont[avenir]

\starttext

\input knuth {\bf \input knuth }

\switchtobodyfont[avenir-light]
\input knuth {\bf \input knuth }

\stoptext
%%%% end example


BTW: ConTeXts already provides typescripts for many OS X fonts but they=20 are a little bit dated.

Wolfgang
--------------060708080106000801050206-- --===============2105665461684087653== 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= --===============2105665461684087653==--