Hello Hans,

Those are nice self-explanatory commands which also mean I don’t have to define them myself.

From my short opentype feature experience I would add the following combinations (defined names could be shortened, long names here only for better explanation):


Tabular oldstyle numbers (oldstyle numbers aligning correctly in tables through fixed spacing):

\definefontfeature[f:tabular_oldstyle][onum=yes,tnum=yes]

\unexpanded\def\settaboldstyle{\doaddfeature{f:tabular_oldstyle}}

\settaboldstyle


Proportional oldstyle numbers (oldstyle numbers for in-text use spaced/kerned according to their forms):

\definefontfeature[f:proportional_oldstyle][onum=yes,pnum=yes]

\unexpanded\def\setpropoldstyle{\doaddfeature{f:proportional_oldstyle}}

\setpropoldstyle


Tabular lining numbers (lining numbers aligning correctly in tables through fixed spacing):

\definefontfeature[f:tabular_lining][lnum=yes,tnum=yes]

\unexpanded\def\settablining{\doaddfeature{f:tabular_lining}}

\settablining


Proportional lining numbers (lining numbers spaced/kerned according to their forms):

\definefontfeature[f:proportional_lining][lnum=yes,pnum=yes]

\unexpanded\def\setproplining{\doaddfeature{f:proportional_lining}}

\setproplining


plus

Scientific inferiors (numbers for subscript, e.g. in chemical formulas):

\definefontfeature[f:inferiors][sinf=yes]

\unexpanded\def\setinferiors{\doaddfeature{f:inferiors}}

\setinferiors


Of course all this works only if the font offers the according opentype features.


Greetings Jörg



On 05.02.2015 23:46, Hans Hagen wrote:
On 2/5/2015 2:10 PM, Jörg Weger wrote:
Thank you very much! I had not thought it was that easy!

Jörg

On 05.02.2015 13:14, Wolfgang Schuster wrote:
\definefontfamily [mainface][rm][Linux Libertine O]
\definefontfamily [mainface][mm][TeX Gyre Pagella Math]

\definefontfeature[f:sups][sups=yes]

\setupbodyfont[mainface]

\setupnote    [footnote][textcommand=,textstyle=\addff{f:sups}]
\setupnotation[footnote][numbercommand=,headstyle=\addff{f:sups}]

\starttext

\input knuth\footnote{Knuth sample text}

\input ward\footnote{Ward sample text}

\stoptext

i'll add:

\definefontfeature[f:superiors][sups=yes]

\unexpanded\def\setsuperiors{\doaddfeature{f:superiors}}

(we already have \setsmallcaps, \settabular and \setoldstyle)

Hans



-----------------------------------------------------------------
                                           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
___________________________________________________________________________________
___________________________________________________________________________________
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 via email to