On May 11, 2009, at 8:39 AM, Corsair wrote:

Thanks you for the reply!  But it doesn't work for me, because small
cap numbers in Adobe Caslon Pro are themselves old-style...

I don't use XeTeX, but this works in mkiv:

\definefontfeature
  [mydefault]
[mode = node ,script=latn,language=dflt,liga=yes,onum=yes,kern=yes,tlig=yes,trep=yes]

\definefontfeature
  [mycaps]
[mode =node,script=latn,language=dflt,liga=yes,lnum=yes,kern=yes,smcp=yes]

\starttypescript [serif] [caslon]
\definefontsynonym [Caslon-Roman] [name:acaslonproregular] [features=mydefault] \definefontsynonym [Caslon-Bold] [name:acaslonprobold] [features=mydefault] \definefontsynonym [Caslon-Italic] [name:acaslonproitalic] [features=mydefault] \definefontsynonym [Caslon-Bold-Italic] [name:acaslonprobolditalic] [features=mydefault] \definefontsynonym [Caslon-SmallCaps] [name:acaslonproregular] [features=mycaps]
 \stoptypescript

\starttypescript [serif] [caslon]
\definefontsynonym [Serif] [Caslon-Roman] [features=mydefault] \definefontsynonym [SerifItalic] [Caslon-Italic] [features=mydefault] \definefontsynonym [SerifBold] [Caslon-Bold] [features=mydefault] \definefontsynonym [SerifBoldItalic] [Caslon-Bold-Italic] [features=mydefault] \definefontsynonym [SerifCaps] [Caslon-SmallCaps] [features=mycaps]
\stoptypescript

\starttypescript [Caslon]
  \definetypeface [Caslon] [rm] [serif] [caslon] [default]
\stoptypescript

\usetypescript[Caslon]
\setupbodyfont[Caslon,12pt]

\starttext

These are oldstyle: 1 2 3 4 5 6 7 8 9 0

{\sc These are not: 1 2 3 4 5 6 7 8 9 0}

\stoptext

HTH

Thomas
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to