Changes

Jump to navigation Jump to search
116 bytes added ,  08:11, 13 April 2011
Updated oldstyle figures technique
With OpenType fonts that come with text figures you can just ''add'' the respective
font feature to the current set of font features.
<texcode>
% defining a new feature set called “oldstyle”\definefontfeature [oldstyledefault] [default] [onum=yes]
% adding this feature set\addff{oldstyle}setupbodyfont[schola,8pt]
\starttext
1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 9871234567890
\stoptext
</texcode>
 
or
 
<texcode>
\setupbodyfont[schola,8pt]
 
\definefontfeature[oldstyle][onum=yes]
 
\starttext
1234567890 {\addff{oldstyle}1234567890}
\stoptext
</texcode>
 
See mailing list discussion at http://www.ntg.nl/pipermail/ntg-context/2011/058394.html .
(You can check whether your font supports the “onum” feature by running
29

edits

Navigation menu