Matthijs Kooijman wrote:
Hi all,
I'm currently using old-style numerals in my document using the onum otf font feature:
\definefontfeature[default][default][onum=yes]
This gives very nice results, except for the cases where a 0 appears by itself in the text. In these cases, it appears just like an o instead of a 0. I'd like to explicitly turn off old style numerals for those cases, but I'm unsure how. Any suggestions?
it assumes that you know what is provided by the font ... you cam play with addff and subff and addfs and subfs (individual features cq. current set) \definefontfeature[smallcaps][smallcaps][script=latn] \definefontfeature[oldstyle] [oldstyle] [script=latn] \definedfont[name:cambria at 15pt] Hello there {\setff{smallcaps}capped 123 \setff{oldstyle}123!} \blank Hello there {\addff{smallcaps}capped 123 \addff{oldstyle}123!} \blank Hello there {\addff{smallcaps}capped \subff{smallcaps}normal} \blank ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------