From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/97171 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: Mon, 30 Jan 2017 09:12:20 +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="===============5519481288770562578==" X-Trace: blaine.gmane.org 1485764000 28828 195.159.176.226 (30 Jan 2017 08:13:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 30 Jan 2017 08:13:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 30 09:13:16 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 1cY75P-0007E8-Ju for gctc-ntg-context-518@m.gmane.org; Mon, 30 Jan 2017 09:13:15 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BFDEB12603F2; Mon, 30 Jan 2017 09:12:57 +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 hXDkYchFL7Pu; Mon, 30 Jan 2017 09:12:56 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id EC4C312603F6; Mon, 30 Jan 2017 09:12:56 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9D50B12603DD for ; Mon, 30 Jan 2017 09:12:55 +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 Np9EO3uuUrVl for ; Mon, 30 Jan 2017 09:12:54 +0100 (CET) Original-Received: from mail-ot0-f170.google.com (mail-ot0-f170.google.com [74.125.82.170]) (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 2DFE512603DA for ; Mon, 30 Jan 2017 09:12:43 +0100 (CET) Original-Received: by mail-ot0-f170.google.com with SMTP id 32so78779420oth.3 for ; Mon, 30 Jan 2017 00:12:43 -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=FdAFlyH+VMllF4iGcVzbxXsydIngHqw70pL+Zi7xXVw=; b=NFLI60gBGaixCz1q0nvjQ6GmfD3gFsoTLs0HJOfOqXQWDAv9qqrZnEWVayU6VscYU6 GC8R/4pSmCcaL6tmP/N6WzLJAac5JxFpqozoOzpM3/1eFEQ9cEtXnRiRZoAiHGkAamJh UVXSMMEfNhkRQRWbvfemvZgyaRNpidi/D9tyk6Fga7SwGM9tPPVghAumW4YKrLWr9OQl nuHajqgJVdZNHqigpLtrAQ2A16xc+NNYnGL14mPkbfhyrOA+UFcM+b7E82vDPUs5pt3w RIPsO29bjMtv+QXzr1cgoEyEN1TtLDKYjjLU1ifKz57WByZBKTpcwB5HAO8wApnu4BAe LxtQ== 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=FdAFlyH+VMllF4iGcVzbxXsydIngHqw70pL+Zi7xXVw=; b=Bv3WcGOTSHF/WW7F2q3HN5ilBgTk801MWi/zByooWkPuP3EMGlnjXC+4EBnKokW3E1 6Nx+M7WF68YpY4eiVS00YfdndIGARQCvJoZoH5B9B7mWooh/F8C93Eo5WUMMAC5FYkjA Q+AJlMwm8GvpYzPp9Y2P4JTQPFobUJ0c436m4717aJEDWHfoHo7p1yQNKv/KtP7KhW3u JpVpobp/uatVgSjXi+4F8t16ogB3etCWpKgPGD7c3np1U+4QNbaFYfge/hUz6ke0AGpF QcyJjr2qDoMDM/WfgQDtTsuLOf1vug/DMDW0OjYQ8qZMBniuXI7RmpRrX+F1BgyB+2dh Y4fg== X-Gm-Message-State: AIkVDXIURHIS353/S98lakbb/olSElg8Txurabb2VPspYYkr1eoU9mzRYGa4tFd9X7p+WH4BqncoR9YhZXS6sw== X-Received: by 10.157.19.43 with SMTP id f40mr10911400ote.189.1485763960900; Mon, 30 Jan 2017 00:12:40 -0800 (PST) Original-Received: by 10.182.65.166 with HTTP; Mon, 30 Jan 2017 00:12:20 -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:97171 Archived-At: --===============5519481288770562578== Content-Type: multipart/alternative; boundary=001a113deb901c174a05474b613e --001a113deb901c174a05474b613e Content-Type: text/plain; charset=UTF-8 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. > > 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. > > --001a113deb901c174a05474b613e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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 <= antoinecaill= iau@gmail.com> wrote:
Hi,

I'm trying to declare a new font sty= le. I declare it with=C2=A0\definefontstyle [sx] [sx] but the compilation f= ails when I use \sx in my document.

I found an old= er message from 2009 similar to my issue but with public solution. May be s= ome private response from Hans Hagen is missing? (https://= mailman.ntg.nl/pipermail/ntg-context/2009/043067.html)
<= div>
Here is a minimal example:

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

\starttypescri= pt [semiextended] [optical] [size]
=C2=A0 \definebodyfont [11pt] = [sx] [tf=3DSansSemiExtended sa 1] =C2=A0 =C2=A0=C2=A0
\stoptypesc= ript

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

\starttext

{\sx ABCDEFGHIJKLM\= par
NOPQRSTUVWXYZ\par
abcdefghijklm\par
nopqr= stuvwxyz\par
1234567890}

\stoptext
=

Thanks for your help,

An= toine C.


--001a113deb901c174a05474b613e-- --===============5519481288770562578== 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 --===============5519481288770562578==--