[NTG-context] Font features for \ss only?

2011-05-23 Thread Oliver Buerschaper
Hi all,

how would I make sure that \ss always uses one set of font features while \rm 
always uses the default feature set? Do I need to specify this in the 
typescript file?

The reason is I'm using Myriad as \ss font and would like to enable the capital 
spacing (cpsp) OpenType feature for that while activating a different feature 
set for all \rm instances (Minion in this case)…

Many thanks,
Oliver
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Font features for \ss only?

2011-05-23 Thread Wolfgang Schuster

Am 23.05.2011 um 20:07 schrieb Oliver Buerschaper:

 Hi all,
 
 how would I make sure that \ss always uses one set of font features while \rm 
 always uses the default feature set? Do I need to specify this in the 
 typescript file?
 
 The reason is I'm using Myriad as \ss font and would like to enable the 
 capital spacing (cpsp) OpenType feature for that while activating a different 
 feature set for all \rm instances (Minion in this case)…

\usemodule[simplefonts]

\definefontfeature[myriad][default][cpsp=yes]

\setmainfont[Minion Pro]
\setsansfont[Myriad Pro][features=myriad]

\starttext
...
\stoptext

Wolfgang

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___