On Mon, May 11, 2009 at 08:37:46AM +0200, Henning Hraban Ramm wrote:
Similarly you could define an additional variant, like "noos". http://wiki.contextgarden.net/Font_Variants
(Didn't check if font variants work ok in MkIV; I used them only for light and medium weights before.)
I tried this approach and failed. I compiled the following code with texexec --xtx, and the resulting PDF contained nothing except an old-style page number... Any idea? # --------------- ConTeXt code --------------- \definefontfeature [old] [onum=yes] \definefontfeature [noos] [onum=no] \definefontfeature [smcap] [smcp=yes] \starttypescript [serif] [caslon] \definefontsynonym [Caslon-Roman] [file:ACaslonPro-Regular] [features=old] \definefontsynonym [Caslon-Roman-NoOs] [file:ACaslonPro-Regular] [features=noos] \definefontsynonym [Caslon-Bold] [file:ACaslonPro-Bold] [features=old] \definefontsynonym [Caslon-Italic] [file:ACaslonPro-Italic] [features=old] \definefontsynonym [Caslon-Bold-Italic] [file:ACaslonPro-BoldItalic] [features=old] \definefontsynonym [Caslon-SmallCaps] [file:ACaslonPro-Regular] [features=smcap] \stoptypescript \starttypescript [serif] [caslon] [name] \definefontsynonym [Serif] [Caslon-Roman] \definefontsynonym [SerifItalic] [Caslon-Italic] \definefontsynonym [SerifBold] [Caslon-Bold] \definefontsynonym [SerifBoldItalic] [Caslon-Bold-Italic] \definefontsynonym [SerifCaps] [Caslon-SmallCaps] \definefontvariant [Serif][noos][NoOs] \definefontsynonym [SerifRegular] [Serif] \definefontsynonym [SerifRegularNoOs] [Caslon-Roman-NoOs] \definefontsynonym [SerifItalicNoOs] [Caslon-Italic] \definefontsynonym [SerifBoldNoOs] [Caslon-Bold] \definefontsynonym [SerifBoldItalicNoOs] [Caslon-Bold-Italic] \stoptypescript \usetypescript[caslon] \starttypescript [prof] \definetypeface [prof] [rm] [serif] [caslon] [default] \stoptypescript \usetypescript[prof] \setupbodyfont[prof, 12pt] \starttext {\Var[noos] 1234567890} \stoptext # --------------- End of ConTeXt code--------------- %%% Local Variables: %%% mode: context %%% TeX-PDF-mode: t %%% End: -- There is no emotion; there is peace. There is no ignorance; there is knowledge. There is no passion; there is serenity. There is no death; there is the Force.