[NTG-context] adding font feature tnum in the TOC

Wolfgang Schuster schuster.wolfgang at gmail.com
Tue Mar 29 20:52:02 CEST 2016


> Willi Egger <mailto:context at boede.nl>
> 29. März 2016 um 20:38
> I underrstand this, however then I do not get tabular figures…
Do you want them for oldstyle figures or lining figures.

\definefontfeature [onum+pnum] [onum=yes,lnum=no,pnum=yes,tnum=no]
\definefontfeature [onum+tnum] [onum=yes,lnum=no,pnum=no,tnum=yes]
\definefontfeature [lnum+pnum] [onum=no,lnum=yes,pnum=yes,tnum=no]
\definefontfeature [lnum+tnum] [onum=no,lnum=yes,pnum=no,tnum=yes]

\setupbodyfont[pagella]

\starttext

\starttabulate[|f{\addfeature{onum+pnum}}r|f{\addfeature{onum+tnum}}r|f{\addfeature{lnum+pnum}}r|f{\addfeature{lnum+tnum}}r|]
\dorecurse{100}{\NC \vrule\threedigits{##1}\vrule \NC 
\vrule\threedigits{##1}\vrule \NC \vrule\threedigits{##1}\vrule \NC 
\vrule\threedigits{##1}\vrule \NC\NR}
\stoptabulate

\stoptext

Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160329/147bdb38/attachment-0001.html>


More information about the ntg-context mailing list