I ought to mention small caps doesn't work with the last approach. Wolfgang Schuster wrote:
On Sat, Oct 11, 2008 at 10:10 PM, Mohamed Bana
wrote: So ... can someone provide a sample file of a document that uses old style by default?
Clearly the following doesn't work;
The fast way (works only for MkII):
\definefontfeature[default][deault][script=latn,onum=yes]
\definetypeface[myface][rm][Xserif][Minion Pro] % i've also tried %\definetypeface[myface][rm][Xserif][Warnock Pro] \definetypeface[myface][ss][Xsans][Myriad Pro] \definetypeface[myface][tt][Xmono][Consolas] \setupbodyfont[myface, 11pt]
The better way (works for MkII and MkIV):
\starttypescript [serif] [minion-pro] \setups[font:fallback:serif] \definefontsynonym [Serif] [MinionPro-Regular] [features=default] \definefontsynonym [SerifBold] [MinionPro-Bold] [features=default] \definefontsynonym [SerifItalic] [MinionPro-Italic] [features=default] \definefontsynonym [SerifBoldItalic] [MinionPro-BoldItalic] [features=default] \stoptypescript
\starttypescript [serif] [minion-pro-os] \setups[font:fallback:serif] \definefontsynonym [Serif] [MinionPro-Regular] [features=oldstyle] \definefontsynonym [SerifBold] [MinionPro-Bold] [features=oldstyle] \definefontsynonym [SerifItalic] [MinionPro-Italic] [features=oldstyle] \definefontsynonym [SerifBoldItalic] [MinionPro-BoldItalic] [features=oldstyle] \stoptypescript
\starttypescript [serif] [minion-pro,minion-pro-os] \definefontsynonym [MinionPro-Regular] [file:MinionPro-Regular] [features=default] \definefontsynonym [MinionPro-Bold] [file:MinionPro-Bold] [features=default] \definefontsynonym [MinionPro-Italic] [file:MinionPro-It] [features=default] \definefontsynonym [MinionPro-BoldItalic] [file:MinionPro-BoldIt] [features=default] \stoptypescript
\starttypescript [minion-pro,minion-pro-os] \definetypeface [minion-pro] [rm] [serif] [\typescriptone] [default] \stoptypescript
%\usetypescript[minion-pro] \usetypescript[minion-pro-os] \setupbodyfont[minion-pro]
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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________