[NTG-context] How to enable tabular numerals with simplefonts and otf?

Wolfgang Schuster schuster.wolfgang at gmail.com
Sun Oct 20 07:56:01 CEST 2013


Am 19.10.2013 um 22:57 schrieb Peter Münster <pmlists at free.fr>:

> 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---


The features key from \definefontfamily expects the name of a feature set (first argument
of \definefontfeature) and not the name of a opentype feature.

Even when you use the correct it won’t help because the font has a no spacing for
the number 3 to 9.

\definefontfeature[default][default][tnum=yes]

\definefontfamily[mainface][rm][Linux Libertine Initials O]

\setupbodyfont[mainface,50pt]

\starttext
\dorecurse{9}{\expanded{\dorecurse{9}{\recurselevel}}\par}
\stoptext

Wolfgang


More information about the ntg-context mailing list