2009/9/24 Mika Ritola <the.thin.air@gmail.com>
2009/9/23 Hans Hagen <pragma@wxs.nl>

Mika Ritola wrote:
2009/9/22 Wolfgang Schuster <schuster.wolfgang@googlemail.com>

Am 22.09.2009 um 12:43 schrieb Mika Ritola:

 Hello again,
I just discovered another weird problem with small caps when using some
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]

Did it work with this redefinition of the smallcaps feature?

\definefontfeature[smallcaps][smallcaps][mode=node]

With \setfontfeature{oldstyle}, I don't seem to get any small caps at all in
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!

does \addfontfeaturetoset{oldstyle} work?

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][liga=no]
%\definefontfeature[smallcaps][smallcaps][mode=node]
%\setmainfont[Adobe Jenson Pro]

\setmainfont[Adobe Jenson Pro][oldstylefigures=yes]

\starttext
{\sc Geoff} % GEOff or GEOFF?

1954 % do old-style figures work?
\stoptext

I have to reply to my own mail because I just updated simplefonts and noticed that the latest version behaves a bit differently. The [oldstylefigures=yes] option still works perfectly, but now both \setfontfeature{oldstyle} and \addfontfeaturetoset{oldstyle} result in small caps not working at all.

Mika