ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: bug in \definefontfamily?
Date: Sun, 19 Mar 2017 20:38:54 +0100	[thread overview]
Message-ID: <58CEDE4E.7080509@gmail.com> (raw)
In-Reply-To: <111a26b4-e666-02db-982f-b985650d8fab@gmx.es>


[-- Attachment #1.1: Type: text/plain, Size: 2874 bytes --]


> Pablo Rodriguez <mailto:oinos@gmx.es>
> 19. März 2017 um 13:38via Postbox 
> <https://www.postbox-inc.com/?utm_source=email&utm_medium=sumlink&utm_campaign=reach>
>
> 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 <mailto:oinos@gmx.es>
> 19. März 2017 um 11:11via Postbox 
> <https://www.postbox-inc.com/?utm_source=email&utm_medium=sumlink&utm_campaign=reach>
>
> 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 <mailto:oinos@gmx.es>
> 18. März 2017 um 23:05via Postbox 
> <https://www.postbox-inc.com/?utm_source=email&utm_medium=sumlink&utm_campaign=reach>
> 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

[-- Attachment #1.2: Type: text/html, Size: 5976 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2017-03-19 19:38 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-18 22:05 OT salt feature not working? Pablo Rodriguez
2017-03-19 10:11 ` Pablo Rodriguez
     [not found]   ` <58ce6920.42ba1c0a.ea8e8.7871@mx.google.com>
2017-03-19 12:38     ` bug in \definefontfamily? (was: Re: OT salt feature not working?) Pablo Rodriguez
2017-03-19 19:38       ` Wolfgang Schuster [this message]
2017-03-19 20:07         ` bug in \definefontfamily? Pablo Rodriguez
2017-03-19 20:32           ` Wolfgang Schuster
2017-03-19 20:40             ` Pablo Rodriguez
2017-03-19 20:46               ` Wolfgang Schuster
2017-03-19 20:58               ` Wolfgang Schuster
2017-03-19 21:08                 ` Pablo Rodriguez
2017-03-19 21:22                   ` Wolfgang Schuster
2017-03-20 12:59                   ` Hans Hagen
2017-03-20 12:55       ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58CEDE4E.7080509@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).