2007/12/6, Steffen Wolfrum
Am 06.12.2007 um 15:37 schrieb Wolfgang Schuster:
2007/12/6, Steffen Wolfrum
: Am 06.12.2007 um 14:48 schrieb Hans Hagen:
something numbers=oldstyle could be supported but i see no real reason for it since then we end up in endless lists of possibilities (given all kind of combinations)
I have not yet played with Lua, thus I can't follow your and Mojca's discussion at that point. But to have a handy way to switch on/off oldstyle figures would be very useful!
"numbers=oldstyle" shouldn't be considered as a theoretical possibility, it is needed quite often.
Steffen
The following should work, can't test it at the moment
\definefontfeature[enableoldstyle][onum=yes] \definefontfeature[disableoldstyle][onum=no]
\starttext
123 \setfontfeature{enableoldstyle} 456 \setfontfeature {disableoldstyle} 789
\stoptext
you mean typeset with Lua, right? with XeTeX it yields
! Undefined control sequence. l.20 \setfontfeature!
This is a new feature introduced only for LuaTeX, not XeTeX and allows you to choose a different fontfeature in your document. Could be used overwrite the defaults for \os and \sc. \def\os{\setfonrfeature{oldstyle}} \def\sc{\setfonrfeature{smallscaps}} Wolfgang