ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: font feature
Date: Fri, 9 Jul 2021 10:04:41 +0200	[thread overview]
Message-ID: <86DF9706-A2BD-45FD-98C5-BC3E55D138C2@uni-bonn.de> (raw)
In-Reply-To: <c8344312-d36a-c6bc-5c1c-89029bedc1dd@xs4all.nl>


> On 8. Jul 2021, at 23:33, Hans Hagen <j.hagen@xs4all.nl> wrote:
> 
> you forgot the 'default' so you basically force basemode which is does permanent features .. add/subtract works only in node mode
> 
> \definefontfeature
>  [f:onum]
>  [onum=yes,pnum=yes]
> 
> \definefontfamily [test] [serif] [AntykwaTorunska] [features={default,f:onum}]
> \definefontfamily [test] [sans]  [Myriad Pro]
> \definefontfamily [test] [mono]  [DejaVu Sans Mono]
> \definefontfamily [test] [math]  [Xits Math]
> 
> \setupbodyfont[test,12pt]
> 
> \starttext
>    test 1 2 3 test 1/2 \subtractfeature[f:onum] test 1 2 3 test 1/2
> \stoptext

Thank you, Hans, this works! I’m looking for a place to add this information to the “featuresets” page on the wiki, will do this soon!

All best

Thomas
___________________________________________________________________________________
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:[~2021-07-09  8:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-08  7:46 Thomas A. Schmitz
2021-07-08 21:33 ` Hans Hagen
2021-07-09  8:04   ` Thomas A. Schmitz [this message]

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=86DF9706-A2BD-45FD-98C5-BC3E55D138C2@uni-bonn.de \
    --to=thomas.schmitz@uni-bonn.de \
    --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).