From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/97591 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: bug in \definefontfamily? Date: Sun, 19 Mar 2017 20:38:54 +0100 Message-ID: <58CEDE4E.7080509@gmail.com> References: <58ce6920.42ba1c0a.ea8e8.7871@mx.google.com> <111a26b4-e666-02db-982f-b985650d8fab@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5476964108034102425==" X-Trace: blaine.gmane.org 1489952378 13733 195.159.176.226 (19 Mar 2017 19:39:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 19 Mar 2017 19:39:38 +0000 (UTC) User-Agent: Postbox 5.0.11 (Macintosh/20170302) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 19 20:39:28 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 1cpgfj-0002P4-4q for gctc-ntg-context-518@m.gmane.org; Sun, 19 Mar 2017 20:39:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F172F82C80; Sun, 19 Mar 2017 20:39:12 +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 hBmlpngcYgnf; Sun, 19 Mar 2017 20:39:12 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 1EBA683AF2; Sun, 19 Mar 2017 20:39:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C179D832E8 for ; Sun, 19 Mar 2017 20:39:10 +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 z9iOd4OaIUmE for ; Sun, 19 Mar 2017 20:39:09 +0100 (CET) Original-Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) (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 EB05382C80 for ; Sun, 19 Mar 2017 20:38:58 +0100 (CET) Original-Received: by mail-wm0-f44.google.com with SMTP id t189so50070359wmt.1 for ; Sun, 19 Mar 2017 12:38:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=o3oRIzjGFTtA5JQZase+KrHYZ3wYcMbTaspr2zLyCws=; b=d/5DU6HxA5lpnoXPgeZ1hNgw4oyi3AuZGrYseTb2wbVP5Ytnuq1N1XPUuOv2f0L5sa SWeOIZGwgmbM11eroD/3iZ7klP2rJbhSFfcqjYE7HLJGXgR5LOKkiQ05d6RnGj47X0C9 XsyLmganmZTe/WfARiHbPnSqFHXCwNzMTU6/SRxdZOw7M0k0lryb+8ZoU6eDAk2R6eWM EFjHfnaAWEM955y09ynnqVqEqiwpVuQ9M35li+1RhQ9xJYSu8u0gSmH+5A7n/GaOwt6O sYlDx5kln5wEfvaXHB4+XDIyc8KjaATps/CjqRSq1QAq90NeXMQBvxatdOJrH9NTm5Uu Yc/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=o3oRIzjGFTtA5JQZase+KrHYZ3wYcMbTaspr2zLyCws=; b=r0c+wNK4/fx5M3bpWHx4ZKQMJWOLSlTdqY38MOguQEOwHRaFNsvZcXbYiANM8oOce2 BYqMizQCQGt0862iJojNVFjb82LnwVmUoHnRRZCQeY+cnQCgd9l+Ye8nDk/3NKnI3h7S WkkDZFVnq+Kjs9q9NQ9J06FTs4+sUINU1rEMIQUrUiwPEXS2GxB9Dv5WT4lTt+CUsLV1 HiFontTRZGBFdr7pGb8A1xn8b8BW8y0008FxrIHAZusnMSCoFqoiW47j1dsaxbwsslAy AdPcSO+B3ggDHscgBV9aBIoRuYqjQyleJTE/LCOHNxqepsOUBre6ri3n+ObR/Qbz7MH8 4tiA== X-Gm-Message-State: AFeK/H132HpeueAYyO7SKvtJmYLg7Q9w3ICndsiIBNeA8rdVaPlGzHrGmxxzPmgk2HUZMQ== X-Received: by 10.28.84.18 with SMTP id i18mr6853116wmb.130.1489952338084; Sun, 19 Mar 2017 12:38:58 -0700 (PDT) Original-Received: from keima.localdomain (x2f26b8b.dyn.telefonica.de. [2.242.107.139]) by smtp.gmail.com with ESMTPSA id q4sm10778360wme.17.2017.03.19.12.38.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Mar 2017 12:38:57 -0700 (PDT) In-Reply-To: <111a26b4-e666-02db-982f-b985650d8fab@gmx.es> 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:97591 Archived-At: This is a multi-part message in MIME format. --===============5476964108034102425== Content-Type: multipart/alternative; boundary="------------090702050909000905080004" This is a multi-part message in MIME format. --------------090702050909000905080004 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > Pablo Rodriguez > 19. März 2017 um 13:38via Postbox > > > Hi Joseph, > > sorry, the second sample was different. The first line was TeX Gyre > Pagella and the second line was Neo Euler. > > The default feature for the whole text was old numbers. TeX Gyre Pagella > works fine with it, but Neo Euler (with \definefontfamily) doesn’t > honour "onum". > > But \definefont works fine, so I guess something might be improved in > \definefontfamily. See the sample: > > \definefontfeature[default][default][onum=yes] > \definefontfamily[mainface][rm][TeX Gyre Pagella] > \definefontfamily[mainface][hw][Neo Euler] > \definefont[directFont][euler.otf:+onum] > \setupbodyfont[mainface] > \starttext > \startTEXpage[offset=5ex] > 1110 > > {\hw 1110} > > \directFont 1110 > \stopTEXpage > \stoptext > > BTW, Neo Euler has "Neo-Euler" as PostScript name (according to > otfinfo). Maybe this is causing problems to the font loading mechanism. > > Wolfgang, what do you think of this issue? > > Many thanks for your help, > > Pablo > Pablo Rodriguez > 19. März 2017 um 11:11via Postbox > > > The issue is with the font: > > \definefontfeature[default][default][onum=yes] > \definefontfamily[mainface][rm][TeX Gyre Pagella] > \definefontfamily[mainface][hw][Neo Euler] > \setupbodyfont[mainface] > \starttext > \startTEXpage[offset=5ex] > 1110 > > \hw 1110 > \stopTEXpage > \stoptext > > Just in case it helps, LuaTeX-0.95 from TeX Live 2016 works fine with > both features in this font: > > \input ifluatex.sty > \ifluatex\input luaotfload.sty\fi > \font\1="euler.otf:+salt" > \font\2="euler.otf:+onum" > \1 1110\2 1110 > \bye > > I don’t know why this happens. Could anyone confirm the issue? > > Many thanks for your help, > > Pablo > Pablo Rodriguez > 18. März 2017 um 23:05via Postbox > > Dear list, > > I have the following sample: > > \definefontfeature[default][default][salt=yes] > \definefontfamily[mainface][rm][Neo Euler] > \setupbodyfont[mainface] > \starttext > \startTEXpage[offset=1em] > 1110 > > \type{1110} > \stopTEXpage > \stoptext > > I get the same results with or without the first line commented out. > (I’m using latest beta from 2017.03.02 22:23.) > > Is this a bug or what am I missing? When you use a math font (which Neo Euler is) the argument of the features key is ignored and \definefontfamily uses internal default values instead. These default values can only be overwritten by feature values for each alternative, e.g. \definefontfamily[...][...][Neo Euler][tf={style:regular,features:default}] Wolfgang --------------090702050909000905080004 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
19. März 2017 um 13:38 via Postbox

Hi Joseph,

sorry, the second sample was different. The first line was TeX Gyre
Pagella and the second line was Neo Euler.

The default feature for the whole text was old numbers. TeX Gyre Pagella
works fine with it, but Neo Euler (with \definefontfamily) doesn’t
honour "onum".

But \definefont works fine, so I guess something might be improved in
\definefontfamily. See the sample:

\definefontfeature[default][default][onum=yes]
\definefontfamily[mainface][rm][TeX Gyre Pagella]
\definefontfamily[mainface][hw][Neo Euler]
\definefont[directFont][euler.otf:+onum]
\setupbodyfont[mainface]
\starttext
\startTEXpage[offset=5ex]
1110

{\hw 1110}

\directFont 1110
\stopTEXpage
\stoptext

BTW, Neo Euler has "Neo-Euler" as PostScript name (according to
otfinfo). Maybe this is causing problems to the font loading mechanism.

Wolfgang, what do you think of this issue?

Many thanks for your help,

Pablo
19. März 2017 um 11:11 via Postbox

The issue is with the font:

\definefontfeature[default][default][onum=yes]
\definefontfamily[mainface][rm][TeX Gyre Pagella]
\definefontfamily[mainface][hw][Neo Euler]
\setupbodyfont[mainface]
\starttext
\startTEXpage[offset=5ex]
1110

\hw 1110
\stopTEXpage
\stoptext

Just in case it helps, LuaTeX-0.95 from TeX Live 2016 works fine with
both features in this font:

\input ifluatex.sty
\ifluatex\input luaotfload.sty\fi
\font\1="euler.otf:+salt"
\font\2="euler.otf:+onum"
\1 1110\2 1110
\bye

I don’t know why this happens. Could anyone confirm the issue?

Many thanks for your help,

Pablo
18. März 2017 um 23:05 via Postbox
Dear list,

I have the following sample:

\definefontfeature[default][default][salt=yes]
\definefontfamily[mainface][rm][Neo Euler]
\setupbodyfont[mainface]
\starttext
\startTEXpage[offset=1em]
1110

\type{1110}
\stopTEXpage
\stoptext

I get the same results with or without the first line commented out.
(I’m using latest beta from 2017.03.02 22:23.)

Is this a bug or what am I missing?
When you use a math font (which Neo Euler is) the argument of the features key
is ignored and \definefontfamily uses internal default values instead. These default
values can only be overwritten by feature values for each alternative, e.g.

    \definefontfamily[...][...][Neo Euler][tf={style:regular,features:default}]

Wolfgang
--------------090702050909000905080004-- --===============5476964108034102425== 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 --===============5476964108034102425==--