2009/9/23 Hans Hagen <pragma@wxs.nl>Mika Ritola wrote:does \addfontfeaturetoset{oldstyle} work?
2009/9/22 Wolfgang Schuster <schuster.wolfgang@googlemail.com>
Am 22.09.2009 um 12:43 schrieb Mika Ritola:With \setfontfeature{oldstyle}, I don't seem to get any small caps at all in
Hello again,
I just discovered another weird problem with small caps when using someDid it work with this redefinition of the smallcaps feature?
fonts, e.g. Adobe Jenson Pro or Adobe Garamond Pro.
When old-style figures are enabled, the code below generates "GEOff"
instead of "GEOFF". Another ligature bug, it seems -- which is strange
because I don't see why old-style figures should affect ligatures at all
(not that I know anything about these things), and also because the second
line should disable ligatures in small caps altogether.
\definefontfeature[smallcaps][smallcaps][liga=no]
\definefontfeature[smallcaps][smallcaps][mode=node]
node mode. If I replace it with the line that you suggest below, small caps
seem to work well regardless of mode. So, problem solved for me. Thanks!
That seems to behave the same as \setfontfeature{oldstyle}, i.e. it generates "GEOff". And again, I don't get small caps in node mode. So far, the only way to get small caps and old-style figures working properly together has been to use \setmainfont[Adobe Jenson Pro][oldstylefigures=yes], as suggested by Wolfgang.
Here's my current test file, with all the different variations commented out:
\usemodule[simplefonts]
%\setfontfeature{oldstyle}
%\addfontfeaturetoset{oldstyle}%\definefontfeature[smallcaps][smallcaps][mode=node]
\definefontfeature[smallcaps][smallcaps][liga=no]
%\setmainfont[Adobe Jenson Pro]\starttext
\setmainfont[Adobe Jenson Pro][oldstylefigures=yes]
{\sc Geoff} % GEOff or GEOFF?
1954 % do old-style figures work?
\stoptext