From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/97177 Path: news.gmane.org!.POSTED!not-for-mail From: Antoine Cailliau Newsgroups: gmane.comp.tex.context Subject: Re: How to define a new font style using \definefontstyle? Date: Tue, 31 Jan 2017 09:39:42 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2900481264898554002==" X-Trace: blaine.gmane.org 1485852042 29462 195.159.176.226 (31 Jan 2017 08:40:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2017 08:40:42 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 31 09:40:38 2017 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 1cYTzS-0007Vc-5n for gctc-ntg-context-518@m.gmane.org; Tue, 31 Jan 2017 09:40:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 21BC012603C8; Tue, 31 Jan 2017 09:40:19 +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 SKTQ9DlSjG5P; Tue, 31 Jan 2017 09:40:18 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 38DA71260398; Tue, 31 Jan 2017 09:40:18 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3C17F1260396 for ; Tue, 31 Jan 2017 09:40:17 +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 yTvFqMa3GeLc for ; Tue, 31 Jan 2017 09:40:15 +0100 (CET) Original-Received: from mail-oi0-f42.google.com (mail-oi0-f42.google.com [209.85.218.42]) (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 75204126038D for ; Tue, 31 Jan 2017 09:40:04 +0100 (CET) Original-Received: by mail-oi0-f42.google.com with SMTP id w204so210583166oiw.0 for ; Tue, 31 Jan 2017 00:40:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=j/2Zz764qr11hwOzYw6O4rO99mJ4SFknxeggkgst6Rs=; b=ZtqBnkyxN7K7hYv6axPTOb4T0t0XkLEMmkLxhfSPIaTx7QIY73XJurzSuJVEhZBRF2 sl8EIjwt7dqzCbeJeKOINMqLAARgF/rcFrmlNxr5bt7uCTj71bNlNiGwD2TyRueqUXTK GDmDZRSHyrG5PW2cbntLdIOpAlpBzL9GGJO8wrMvkbo13IrCDrKX8/UhydJJ/T1D/bsi 4irPHlehCNkTGLsS71FxUo0yngZdKM/C4XWR9UtJKQWKLVp41IqoR9Szk9vbsJtWS8Pv TC+xhCtrmskt3cIMqjnh0+Qnnpz3Xc4i/LOVYHp9c4SL5en38rMpsKrRYrAW15dwyTDK WdeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=j/2Zz764qr11hwOzYw6O4rO99mJ4SFknxeggkgst6Rs=; b=ex/Kj2ebYsyf1tvzUNeNyNDvZyplOKxBblhmd2FsIDfcfXOj/ZC+k04dhggY8/jGuL a3vc62pGvxd/8ZVXH2V1PyHKTGQjF7sDYg1A9iW+Nb3G3B1p67HyO9oAsBP4Zddgk4qm 2AczkLXVe08+e8m4cpTMcrZuLdrC9zGZeOKcmwPIlnnHxtbX6Vaj0H0s26L1PTKwzj3j 91NoAByL7JkUQg56IOKiAU4m2fnkOVvnnUwDQPGZyyZSg6bXeJHB1dSnJtTSE0biLJkP /2+uOMC1YNonPIgLq+njU/8VToow0WFAXaBYSYBU+K7BU6kuZmxmAwhUtJVcj+rtLGNf NGsg== X-Gm-Message-State: AIkVDXKi4H3GuUpWnX3iUfbaMPFCB9mtBHS2v4wLtB7lUzWUrkmVz1HqOknDLwijTf7zlpJPZ79d85fA0ULG8Q== X-Received: by 10.202.67.195 with SMTP id q186mr13778625oia.192.1485852002857; Tue, 31 Jan 2017 00:40:02 -0800 (PST) Original-Received: by 10.182.65.166 with HTTP; Tue, 31 Jan 2017 00:39:42 -0800 (PST) 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:97177 Archived-At: --===============2900481264898554002== Content-Type: multipart/alternative; boundary=001a113ddc66d1bbaf05475fe040 --001a113ddc66d1bbaf05475fe040 Content-Type: text/plain; charset=UTF-8 I'm not sure I understand. Myriad Pro has normal and semi-extended versions. Do you suggest to have different typefaces for normal and semi-extended version ? (Which makes no sense for roman then). I'd like to use both normal and semi-extended versions, both with their bold, italic, etc. styles. That why I would have like to create a new font-style. Thanks in advance for your answer, Antoine On 30 January 2017 at 19:43, Hans Hagen wrote: > On 1/30/2017 9:12 AM, Antoine Cailliau wrote: > >> No one? Is there a documentation somewhere or an example I could refer to? >> >> Thanks in advance, >> >> Antoine >> >> On 23 January 2017 at 12:48, Antoine Cailliau > > wrote: >> >> Hi, >> >> I'm trying to declare a new font style. I declare it >> with \definefontstyle [sx] [sx] but the compilation fails when I use >> \sx in my document. >> > > > easier: > > \starttypescript [sans] [myriadpro] > % \definefontsynonym [SansSemiExtended] [file:MyriadPro-SemiExt.otf][f > eatures=default] > \definefontsynonym [Sans] [name:dejavusans] > [features=default] > \definefontsynonym [SansBold] [name:dejavusansbold] > [features=default] > \definefontsynonym [SansItalic] [name:dejavusansitalic] > [features=default] > \definefontsynonym [SansBoldItalic] [name:dejavusansbolditalic][fe > atures=default] > \stoptypescript > > \definetypeface [source] [ss] [sans] [myriadpro] > \definetypeface [source] [mm] [math] [modern] > > \setupbodyfont[pagella] > > \starttext > > {\source\ss ABCDEFGHIJKLM\par > NOPQRSTUVWXYZ\par > abcdefghijklm\par > nopqrstuvwxyz\par > 1234567890} > > \stoptext > > I found an older message from 2009 similar to my issue but with >> public solution. May be some private response from Hans Hagen is >> missing? >> (https://mailman.ntg.nl/pipermail/ntg-context/2009/043067.html >> ) >> >> Here is a minimal example: >> >> \definefontstyle [sx] [sx] >> \definetypeface [source] [sx] [semiextended] [myriadpro] [optical] >> >> \starttypescript [semiextended] [optical] [size] >> \definebodyfont [11pt] [sx] [tf=SansSemiExtended sa 1] >> \stoptypescript >> >> \starttypescript [semiextended] [myriadpro] >> \definefontsynonym [SansSemiExtended] [file:MyriadPro-SemiExt.otf] >> [features=default] >> \stoptypescript >> >> \starttext >> >> {\sx ABCDEFGHIJKLM\par >> NOPQRSTUVWXYZ\par >> abcdefghijklm\par >> nopqrstuvwxyz\par >> 1234567890} >> >> \stoptext >> >> Thanks for your help, >> >> Antoine C. >> >> >> >> >> ____________________________________________________________ >> _______________________ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/list >> info/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> ____________________________________________________________ >> _______________________ >> >> > > -- > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > ____________________________________________________________ > _______________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/list > info/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ____________________________________________________________ > _______________________ --001a113ddc66d1bbaf05475fe040 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I'm not su= re I understand. Myriad Pro has normal and semi-extended versions.=C2=A0
Do you suggest to have different typefaces for normal and = semi-extended version ? (Which makes no sense for roman then).=C2=A0
<= div>
I'd like to use both normal and semi-extended versio= ns, both with their bold, italic, etc. styles. That why I would have like t= o create a new font-style.

Thanks in advance for y= our answer,

Antoine

On 30 January 20= 17 at 19:43, Hans Hagen <pragma@wxs.nl> wrote:
On 1/30/2017 9:12 AM, Antoine Cailliau wr= ote:
No one? Is there a documentation somewhere or an example I could refer to?<= br>
Thanks in advance,

Antoine

On 23 January 2017 at 12:48, Antoine Cailliau <antoinecailliau@gmail.com
<mailto:a= ntoinecailliau@gmail.com>> wrote:

=C2=A0 =C2=A0 Hi,

=C2=A0 =C2=A0 I'm trying to declare a new font style. I declare it
=C2=A0 =C2=A0 with \definefontstyle [sx] [sx] but the compilation fails whe= n I use
=C2=A0 =C2=A0 \sx in my document.


easier:

\starttypescript [sans] [myriadpro]
%=C2=A0 =C2=A0 =C2=A0\definefontsynonym [SansSemiExtended] [file:MyriadPro-= SemiExt.otf][features=3Ddefault]
=C2=A0 =C2=A0 \definefontsynonym [Sans]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0[name:dejavusans] [features=3Ddefault]
=C2=A0 =C2=A0 \definefontsynonym [SansBold]=C2=A0 =C2=A0 =C2=A0 =C2=A0[name= :dejavusansbold] [features=3Ddefault]
=C2=A0 =C2=A0 \definefontsynonym [SansItalic]=C2=A0 =C2=A0 =C2=A0[name:deja= vusansitalic] [features=3Ddefault]
=C2=A0 =C2=A0 \definefontsynonym [SansBoldItalic] [name:dejavusansbolditali= c][features=3Ddefault]
\stoptypescript

\definetypeface=C2=A0 [source] [ss] [sans] [myriadpro]
\definetypeface=C2=A0 [source] [mm] [math] [modern]

\setupbodyfont[pagella]

\starttext

{\source\ss ABCDEFGHIJKLM\par
NOPQRSTUVWXYZ\par
abcdefghijklm\par
nopqrstuvwxyz\par
1234567890}

\stoptext

=C2=A0 =C2=A0 I found an older message from 2009 similar to my issue but wi= th
=C2=A0 =C2=A0 public solution. May be some private response from Hans Hagen= is
=C2=A0 =C2=A0 missing?
=C2=A0 =C2=A0 (https://mailman.ntg.nl/p= ipermail/ntg-context/2009/043067.html
=C2=A0 =C2=A0 <https://mailman.ntg.n= l/pipermail/ntg-context/2009/043067.html>)

=C2=A0 =C2=A0 Here is a minimal example:

=C2=A0 =C2=A0 \definefontstyle [sx] [sx]
=C2=A0 =C2=A0 \definetypeface=C2=A0 [source] [sx] [semiextended] [myriadpro= ] [optical]

=C2=A0 =C2=A0 \starttypescript [semiextended] [optical] [size]
=C2=A0 =C2=A0 =C2=A0 \definebodyfont [11pt] [sx] [tf=3DSansSemiExtended sa = 1]
=C2=A0 =C2=A0 \stoptypescript

=C2=A0 =C2=A0 \starttypescript [semiextended] [myriadpro]
=C2=A0 =C2=A0 \definefontsynonym [SansSemiExtended] [file:MyriadPro-SemiExt= .otf]
=C2=A0 =C2=A0 [features=3Ddefault]
=C2=A0 =C2=A0 \stoptypescript

=C2=A0 =C2=A0 \starttext

=C2=A0 =C2=A0 {\sx ABCDEFGHIJKLM\par
=C2=A0 =C2=A0 NOPQRSTUVWXYZ\par
=C2=A0 =C2=A0 abcdefghijklm\par
=C2=A0 =C2=A0 nopqrstuvwxyz\par
=C2=A0 =C2=A0 1234567890}

=C2=A0 =C2=A0 \stoptext

=C2=A0 =C2=A0 Thanks for your help,

=C2=A0 =C2=A0 Antoine C.




_________________________________________________________________= __________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listin= fo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________



--

-----------------------------------------------------------------=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 H= ans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Ridderstraat 27 | 8061 GH = Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0tel: 038 477 53 69 | www.pragma-ade.nl | www.p= ragma-pod.nl
-----------------------------------------------------------------=
_________________________________________________________________= __________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listin= fo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________

--001a113ddc66d1bbaf05475fe040-- --===============2900481264898554002== 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 --===============2900481264898554002==--