From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/97140 Path: news.gmane.org!.POSTED!not-for-mail From: Antoine Cailliau Newsgroups: gmane.comp.tex.context Subject: How to define a new font style using \definefontstyle? Date: Mon, 23 Jan 2017 12:48:03 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1202293850859737098==" X-Trace: blaine.gmane.org 1485172150 24011 195.159.176.226 (23 Jan 2017 11:49:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 23 Jan 2017 11:49:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 23 12:49:05 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 1cVd7E-0004jC-HI for gctc-ntg-context-518@m.gmane.org; Mon, 23 Jan 2017 12:48:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E12061260253; Mon, 23 Jan 2017 12:48:37 +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 96Z0NWpWzHyJ; Mon, 23 Jan 2017 12:48:37 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id EFCAA1260243; Mon, 23 Jan 2017 12:48:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 64CB11260242 for ; Mon, 23 Jan 2017 12:48:36 +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 R9FkkwsrN8kn for ; Mon, 23 Jan 2017 12:48:35 +0100 (CET) Original-Received: from mail-ot0-f174.google.com (mail-ot0-f174.google.com [74.125.82.174]) (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 63458126023E for ; Mon, 23 Jan 2017 12:48:25 +0100 (CET) Original-Received: by mail-ot0-f174.google.com with SMTP id 73so100480589otj.0 for ; Mon, 23 Jan 2017 03:48:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=LTKitxmSWZQun1QpES1231JrCrKBI9u0Ft8qyB7sORc=; b=YmVZ1oB8qxf9oVNbB6SdY5jmnYAqej2TI4E0PBiBYF5Nm+9MWJvLMrMMnpP9xh+xLx 8S4HmQons916QV2L6am7jw1B5htCyF/phV9ND5MwwJzq4xZV4PZx+A01p1vobB2lAY/Z aUJ+2yaK1cQfy59+EEsHEKNPdnN5hX59EsBDuA0xqgea+n4xg21sOFDr9tEb9cng0Xwd pdYS6Mx+4Fs3izcCH89MC6KNaxbJc5frJWLHfHLIPCe2hWnn8l72UzbFGUuyz9KGmFgq ktGDjOnhc1BqIMC4vyweaaErI4wKV+5pZiJFuj5N9hsIl7lEN0F1+IsZnE0nBBDs80uP /i5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=LTKitxmSWZQun1QpES1231JrCrKBI9u0Ft8qyB7sORc=; b=tAsdnYZfYJSzhFBPIXnmrN7isXW12+kyfGjEACZo7B/KyKdhvvK777qyj1nZBJ6KgM 0ZQozOWBHNDXE9eFuzKbwVpvnS5pzXN9TdplpsNUGHpR9mBI/qnTIPghnc4lwRt4RODU 5BNmB9BFT9ntMplsHo379DHCuouxRzsoLkc0n/My9QpK9CCzWE2BcdHJ0TdfsxcwZHfh 8eLBUTUfsXldrQvV6xKxMgzbDidKxG1lVm8HDuD0aci3WMUtMcHGILxM5sRTPukIhmmD wdawSX4PwB/7dCOHREawTnQqsfydeH0a5FyFEp2Cl/+d+75BfqGJHtvEoQ99yQVerZ4l lt0A== X-Gm-Message-State: AIkVDXJpHxx3nblkITCoONfzzeSRa/Ci5kokgLPFMtd0GRAAEn3OItcnF6fMLP8DusQbF4Js3sTLlizMrJa8RA== X-Received: by 10.157.48.69 with SMTP id w5mr13029526otd.110.1485172103702; Mon, 23 Jan 2017 03:48:23 -0800 (PST) Original-Received: by 10.182.65.166 with HTTP; Mon, 23 Jan 2017 03:48:03 -0800 (PST) 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:97140 Archived-At: --===============1202293850859737098== Content-Type: multipart/alternative; boundary=001a113d0decabebf40546c193fa --001a113d0decabebf40546c193fa Content-Type: text/plain; charset=UTF-8 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. --001a113d0decabebf40546c193fa Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I'm trying to declare a new fon= t style. I declare it with=C2=A0\definefontstyle [sx] [sx] but the compilat= ion fails when I use \sx in my document.

I found a= n 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.n= l/pipermail/ntg-context/2009/043067.html)

Here= is a minimal example:

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

\starttypescript [semiextended] [opti= cal] [size]
=C2=A0 \definebodyfont [11pt] [sx] [tf=3DSansSemiExte= nded sa 1] =C2=A0 =C2=A0=C2=A0
\stoptypescript

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

\starttext

{\sx ABCDEFGHIJKLM\par
NOPQRSTUVWXYZ\par
abcdefg= hijklm\par
nopqrstuvwxyz\par
1234567890}

=
\stoptext

Thanks for your help,

Antoine C.

--001a113d0decabebf40546c193fa-- --===============1202293850859737098== 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 --===============1202293850859737098==--