ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: How to enable tabular numerals with simplefonts and otf?
Date: Sun, 20 Oct 2013 07:28:35 +0900	[thread overview]
Message-ID: <52630793.5010402@wxs.nl> (raw)
In-Reply-To: <871u3hou6v.fsf@micropit.couberia.selfip.net>

On 10/20/2013 5:57 AM, Peter Münster wrote:
> On Sun, Jun 10 2012, Wolfgang Schuster wrote:
>
>> \definefontfeature[default][default][tnum=yes]
>
> Hi,
>
> What's the new method please?
>
> I've tried this, but without success:
>
> --8<---------------cut here---------------start------------->8---
> \definefontfamily[mainface][rm][Linux Libertine Initials O][features=tnum]
> \definefontfeature[default][default][tnum=yes]
> \setupbodyfont[mainface]
> \starttext
> \addff{tnum}
> \setff{tnum}
> \feature[+][tnum]
> \feature[+][tnum=yes]
> 565656565656X\par
> 000000000000X
> \stoptext
> --8<---------------cut here---------------end--------------->8---

we probably need a well defined set of predefined features

\setupbodyfont[pagella]

\definefontfeature[inlinenumbers]  [lnum=yes]
\definefontfeature[oldstylenumbers][onum=yes]
\definefontfeature[tabularnumbers] [tnum=yes]

\starttext
% 565656565656X\par
% 000000000000X\par
% 111111111111X\par
% \feature[+][inlinenumbers]
565656565656X\par
000000000000X\par
111111111111X\par
\feature[+][oldstylenumbers]
565656565656X\par
000000000000X\par
111111111111X\par
\feature[+][tabularnumbers]
565656565656X\par
000000000000X\par
111111111111X\par
\stoptext

the problem is that combining features is possible but that
is very font dependent

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2013-10-19 22:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-09 22:01 Peter Münster
2012-06-10  8:01 ` Wolfgang Schuster
2013-10-19 20:57   ` Peter Münster
2013-10-19 22:28     ` Hans Hagen [this message]
2013-10-19 22:53       ` Hans Hagen
2013-10-20  5:56     ` Wolfgang Schuster

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=52630793.5010402@wxs.nl \
    --to=pragma@wxs.nl \
    --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).