% engine=luatex
\definefontfeature[latin-smallcaps][smallcaps][script=latn]

\starttypescript [sans] [myriadpro] 
  \setups[font:fallback:sans]
  % \definefontsynonym [MyriadPro-Regular]    [name:MyriadPro-Regular]    [features=default]
  % \definefontsynonym [MyriadPro-Bold]       [name:MyriadPro-Bold]       [features=default]
  % \definefontsynonym [MyriadPro-Italic]     [name:MyriadPro-It]         [features=default]
  % \definefontsynonym [MyriadPro-BoldItalic] [name:MyriadPro-BoldIt]     [features=default]
  \definefontsynonym [MyriadPro-Regular]    [name:myriadproregular]    
  \definefontsynonym [MyriadPro-Bold]       [name:myriadprobold]       
  \definefontsynonym [MyriadPro-Italic]     [name:myriadproit]        
  \definefontsynonym [MyriadPro-BoldItalic] [name:myriadproboldit]
\stoptypescript

\starttypescript [sans] [myriadpro]
  \definefontsynonym [Sans]             [MyriadPro-Regular]     [features=default]
  \definefontsynonym [SansBold]         [MyriadPro-Bold]        [features=default]
  \definefontsynonym [SansItalic]       [MyriadPro-Italic]      [features=default]
  \definefontsynonym [SansBoldItalic]   [MyriadPro-BoldItalic]  [features=default]
  \definefontsynonym [SansCaps]         [Sans]                  [features=latin-smallcaps]
\stoptypescript

\starttypescript [serif] [warnockpro]
  \setups[font:fallback:sans]
  \definefontsynonym [WarnockPro-Regular]    [name:WarnockPro-Regular]  
  \definefontsynonym [WarnockPro-Bold]       [name:WarnockPro-Bold]    
  \definefontsynonym [WarnockPro-Italic]     [name:WarnockPro-It]       
  \definefontsynonym [WarnockPro-BoldItalic] [name:WarnockPro-BoldIt]  
\stoptypescript

\starttypescript [serif] [warnockpro]
  \definefontsynonym [Serif]           [WarnockPro-Regular]        [features=default]
  \definefontsynonym [SerifBold]       [WarnockPro-Bold]           [features=default]
  \definefontsynonym [SerifItalic]     [WarnockPro-Italic]         [features=default]
  \definefontsynonym [SerifBoldItalic] [WarnockPro-BoldItalic]     [features=default]
  \definefontsynonym [SerifCaps]       [Serif]                     [features=latin-smallcaps]
\stoptypescript

\definetypeface[adobe][rm][serif][warnockpro][default]
\definetypeface[adobe][ss][sans][myriadpro][default]
\definetypeface[adobe][mm][math][palatino] [default]
\definetypeface[adobe][tt][mono][modern] [default]
\setupbodyfont[adobe,11pt]

\startext
\dorecurse{10}{\input zapf}
\stoptext
