From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95777 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Problems with old style figures and particular font Date: Fri, 12 Aug 2016 12:08:32 +0200 Message-ID: <57ADA020.7070905@gmail.com> References: <57acd518.944f190a.fafd8.1ee1@mx.google.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3998291176419245313==" X-Trace: blaine.gmane.org 1470996565 7618 195.159.176.226 (12 Aug 2016 10:09:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Aug 2016 10:09:25 +0000 (UTC) User-Agent: Postbox 4.0.8 (Macintosh/20151105) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 12 12:09:20 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 blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bY9Ox-0001iO-Hj for gctc-ntg-context-518@m.gmane.org; Fri, 12 Aug 2016 12:09:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4468514CA3; Fri, 12 Aug 2016 12:09: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 5BxSQMo3UeHM; Fri, 12 Aug 2016 12:08:58 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id BC1BA14CA4; Fri, 12 Aug 2016 12:08:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5EE2114CA2 for ; Fri, 12 Aug 2016 12:08:57 +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 gZoSVD98I756 for ; Fri, 12 Aug 2016 12:08:56 +0200 (CEST) Original-Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) (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 D249814C98 for ; Fri, 12 Aug 2016 12:08:46 +0200 (CEST) Original-Received: by mail-wm0-f47.google.com with SMTP id i5so22861786wmg.0 for ; Fri, 12 Aug 2016 03:08:46 -0700 (PDT) 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; bh=RDbophN0U9/j0m/lgmqB7T4H8bTxLp6V+6OJ8iAs1OU=; b=ddbTkWd5i/0X48sOZX227hHC0YBHj6FEcemz6tf0osqqhLz4VdI57E94lWzrj0l2Kz Yzeu6z1fFyHue2qZ2QfgIpF6C2UIJEiFOhWlBQ+pcN8+cCywXtbvt/LBOVAjDWhElPKD LjUe8b1Xv+INifQKERWzbLfie13wV1Jv+h1J1JK3S4N/tKC5THfmEyzqqLMDqB2D1Glm f8DZOCQg7wkFy8uGjWepQsxrv3x7fqUe/0m1qJo+f+ew+EvYoJbTuQ1aAtH4EL9R/kmR r0ooOQ4A8s9bUxSCnneEUnMb1B4y7JA1CiwdgbJlRQsZhtlBbUzPyFFusvOckmOYw1pR npsA== 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; bh=RDbophN0U9/j0m/lgmqB7T4H8bTxLp6V+6OJ8iAs1OU=; b=GPvjYHyjnEsF4wpxy4PmYKZMq3myRmDbGwTWDroB9GXv0mod3aGFrjIK5XvLj4lSOe aDvwYw4mw6byoWd1/muNN/BnnTnop9xmjQqeBAjkuTRLqBw6TuPswCrQsJufBlKZYmZC j7ZpOv7v/NJwK+mVgS4Wjcm4/sXWobOYAk8Q6DNc1mw/JSeNchfWuxVoN11LXSV9gvS3 h8uBLgzYloOA1Yt9JmYo85w8A0okHEl2C4D3+zXiMM2+AyHUVxxvZrZCT9a7oyzmQqgy 8cDaXHkzudMiLqYrtf4qOg5pOOLLrr+g3z916Jmu7echLWebETORpmox2SOLt/xjKUvE sNXg== X-Gm-Message-State: AEkoouuUXbMHO5hZv5hM17T5it6/1V5bULtlJ+26ErB4+j0BCYlvjoQMFbjbtflMd/Mqxw== X-Received: by 10.28.139.144 with SMTP id n138mr2216972wmd.71.1470996515441; Fri, 12 Aug 2016 03:08:35 -0700 (PDT) Original-Received: from keima.localdomain (x2f27695.dyn.telefonica.de. [2.242.118.149]) by smtp.gmail.com with ESMTPSA id o142sm1811626wme.20.2016.08.12.03.08.34 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Aug 2016 03:08:34 -0700 (PDT) In-Reply-To: <57acd518.944f190a.fafd8.1ee1@mx.google.com> 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:95777 Archived-At: This is a multi-part message in MIME format. --===============3998291176419245313== Content-Type: multipart/alternative; boundary="------------010602010700080006090509" This is a multi-part message in MIME format. --------------010602010700080006090509 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Martin Oppegaard > 11. August 2016 um 21:42 > Hi Wolfgang, thank you for the quick reply. > > Moving \definefontfeature before \setupbodyfont doesn't change anything > for me. Here is the output of running context: You need also "script=latn" when you enable oldstyle numerals. You can use the mtxrun script to list the available features of a font where you also see the necessary script: $ mtxrun --script font --list --info fbbregular resolvers | trees | analyzing 'home:texmf' mtx-fonts | mtx-fonts | mapping : fbbregular mtx-fonts | fontname : fbbregular mtx-fonts | fullname : fbbregular mtx-fonts | filename : fbb-Regular.otf mtx-fonts | family : fbb mtx-fonts | weight : normal mtx-fonts | style : normal mtx-fonts | width : normal mtx-fonts | variant : normal mtx-fonts | fweight : conflict: regular mtx-fonts | ... mtx-fonts | mtx-fonts | gsub features: mtx-fonts | mtx-fonts | feature script languages mtx-fonts | ... mtx-fonts | onum grek dflt mtx-fonts | latn dflt %%%% begin example \starttypescript [serif] [fbb] \setups[font:fallback:serif] \definefontsynonym [Serif] [file:fbbregular] \definefontsynonym [SerifItalic] [file:fbbitalic] \definefontsynonym [SerifBold] [file:fbbbold] \definefontsynonym [SerifBoldItalic] [file:fbbbolditalic] \stoptypescript \definefontfeature[default][default][script=latn,onum=yes] \definetypeface [fbb] [rm] [serif] [fbb] [default] [features=default] \definetypeface [fbb] [mm] [math] [modern] [default] \setupbodyfont[fbb] \starttext ABC abc 1234 \stoptext %%%% end example Wolfgang --------------010602010700080006090509 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
11. August 2016 um 21:42
Hi Wolfgang, thank you for the quick reply.

Moving \definefontfeature before \setupbodyfont doesn't change anything
for me. Here is the output of running context:
You need also "script=latn" when you enable oldstyle numerals.


You can use the mtxrun script to list the available features of a font
where you also see the necessary script:

$ mtxrun --script font --list --info fbbregular

resolvers       | trees | analyzing 'home:texmf'
mtx-fonts       |
mtx-fonts       | mapping   : fbbregular
mtx-fonts       | fontname  : fbbregular
mtx-fonts       | fullname  : fbbregular
mtx-fonts       | filename  : fbb-Regular.otf
mtx-fonts       | family    : fbb
mtx-fonts       | weight    : normal
mtx-fonts       | style     : normal
mtx-fonts       | width     : normal
mtx-fonts       | variant   : normal
mtx-fonts       | fweight   : conflict: regular
mtx-fonts       |
...
mtx-fonts       |
mtx-fonts       | gsub features:
mtx-fonts       |
mtx-fonts       | feature  script   languages
mtx-fonts       |
...
mtx-fonts       | onum     grek     dflt   
mtx-fonts       |          latn     dflt   



%%%% begin example
\starttypescript [serif] [fbb]
  \setups[font:fallback:serif]
  \definefontsynonym [Serif]           [file:fbbregular]
  \definefontsynonym [SerifItalic]     [file:fbbitalic]
  \definefontsynonym [SerifBold]       [file:fbbbold]
  \definefontsynonym [SerifBoldItalic] [file:fbbbolditalic]
\stoptypescript

\definefontfeature[default][default][script=latn,onum=yes]

\definetypeface [fbb] [rm] [serif] [fbb]    [default] [features=default]
\definetypeface [fbb] [mm] [math]  [modern] [default]

\setupbodyfont[fbb]

\starttext
ABC abc 1234
\stoptext
%%%% end example

Wolfgang
--------------010602010700080006090509-- --===============3998291176419245313== 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= --===============3998291176419245313==--