2009/9/23 Hans Hagen <pra...@wxs.nl> > Mika Ritola wrote: > >> 2009/9/22 Wolfgang Schuster <schuster.wolfg...@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 Mika
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________