%------------------------------ My Typescripts ------------------------------%


%font-features:
\definefontfeature[default][mode=node, tlig=yes, trep=yes, cpsp=yes, salt=no, size=yes, 
protrusion=quality, expansion=quality, script=latn, kern=yes, liga=yes, itlc=yes, onum=no] 
\definefontfeature[smallcaps][default][smcp=yes]
\definefontfeature[medivial][default][onum=yes]



%typescripts:
\starttypescript [math] [asana] [name] 
\definefontsynonym [MathRoman] [name:Asana-Math] [features=math\mathsizesuffix] 
\stoptypescript

\starttypescript [sans] [myriad-pro] [name]

  \definefontsynonym [Sans]                [name:MyriadPro-Regular] 
  \definefontsynonym [SansBold]            [name:MyriadPro-Bold]
  \definefontsynonym [SansItalic]          [name:MyriadPro-It]
  \definefontsynonym [SansBoldItalic]      [name:MyriadPro-BoldIt]
  \definefontsynonym [SansSemiBold]        [name:MyriadPro-Semibold]
  \definefontsynonym [SansSemiBoldItalic]  [name:MyriadPro-SemiboldIt]
  \definefontsynonym [SansBlack]           [name:MyriadPro-Black]
  \definefontsynonym [SansBlackItalic]     [name:MyriadPro-BlackIt]
  \definefontsynonym [SansLight]           [name:MyriadPro-Light]
  \definefontsynonym [SansLightItalic]     [name:MyriadPro-LightIt]
  \definefontsynonym [Sans-Caps]           [name:MyriadPro-Regular] [features=smallcaps]
  \definefontsynonym [Sans-Caps-Bold]      [name:MyriadPro-Bold]    [features=smallcaps]
  \definefontsynonym [SansItalic]          [name:MyriadPro-It]  [features=smallcaps]

  \definefontsynonym [SansSemiCondensed]              [name:MyriadPro-SemiCn]
  \definefontsynonym [SansSemiCondensedBold]          [name:MyriadPro-BoldSemiCn]
  \definefontsynonym [SansSemiCondensedItalic]        [name:MyriadPro-SemiCnIt]
  \definefontsynonym [SansSemiCondensedBoldItalic]    [name:MyriadPro-BoldCondIt]
  \definefontsynonym [SansSemiCondensedSemiBold]      [name:MyriadPro-SemiboldSemiCn]
  \definefontsynonym [SansSemiCondensedSemiBoldItalic][name:MyriadPro-SemiboldSemiCnIt]
  \definefontsynonym [SansSemiCondensedBlack]         [name:MyriadPro-BlackSemiCn]
  \definefontsynonym [SansSemiCondensedBlackItalic]   [name:MyriadPro-BlackSemiCnIt]
  \definefontsynonym [SansSemiCondensedLight]         [name:MyriadPro-LightCond]
  \definefontsynonym [SansSemiCondensedLightItalic]   [name:MyriadPro-LightCondIt]
  \definefontsynonym [SansSemiCondensed]              [name:MyriadPro-SemiCn]  [features=smallcaps]
  \definefontsynonym [SansSemiCondensedBold]          [name:MyriadPro-BoldSemiCn]  [features=smallcaps]
  \definefontsynonym [SansSemiCondensedItalic]        [name:MyriadPro-SemiCnIt]  [features=smallcaps]
\stoptypescript

\starttypescript [serif] [minion-pro] 
  \definefontsynonym [Serif]           [SerifRegular-Regular]
  \definefontsynonym [SerifBold]       [SerifRegular-Bold]
  \definefontsynonym [SerifItalic]     [SerifRegular-Italic]
  \definefontsynonym [SerifBoldItalic] [SerifRegular-BoldItalic]
\stoptypescript

\starttypescript [serif] [minion-pro] [name]

  \definefontsynonym [SerifCaption-Regular]         [name:MinionPro-Capt]       [features=default]
  \definefontsynonym [SerifCaption-Bold]            [name:MinionPro-BoldCapt]   [features=default]
  \definefontsynonym [SerifCaption-Italic]          [name:MinionPro-ItCapt]     [features=default]
  \definefontsynonym [SerifCaption-BoldItalic]      [name:MinionPro-BoldItCapt] [features=default]
  \definefontsynonym [SerifCaption-Caps-Regular]    [name:MinionPro-Capt]       [features=smallcaps]
  \definefontsynonym [SerifCaption-Caps-Bold]       [name:MinionPro-BoldCapt]   [features=smallcaps]
  \definefontsynonym [SerifCaption-Caps-Italic]     [name:MinionPro-ItCapt]     [features=smallcaps]
  \definefontsynonym [SerifCaption-Caps-BoldItalic] [name:MinionPro-BoldItCapt] [features=smallcaps]
  

  \definefontsynonym [SerifRegular-Regular]         [name:MinionPro-Regular] [features=default]
  \definefontsynonym [SerifRegular-Bold]            [name:MinionPro-Bold]    [features=default]
  \definefontsynonym [SerifRegular-Italic]          [name:MinionPro-It]      [features=default]
  \definefontsynonym [SerifRegular-BoldItalic]      [name:MinionPro-BoldIt]  [features=default]
  \definefontsynonym [SerifRegular-Caps-Regular]    [name:MinionPro-Regular] [features=smallcaps]
  \definefontsynonym [SerifRegular-Caps-Bold]       [name:MinionPro-Bold]    [features=smallcaps]
  \definefontsynonym [SerifRegular-Caps-Italic]     [name:MinionPro-It]      [features=smallcaps]
  \definefontsynonym [SerifRegular-Caps-BoldItalic] [name:MinionPro-BoldIt]  [features=smallcaps]

  \definefontsynonym [SerifSubhead-Regular]         [name:MinionPro-Subh]       [features=default]
  \definefontsynonym [SerifSubhead-Bold]            [name:MinionPro-BoldSubh]   [features=default]
  \definefontsynonym [SerifSubhead-Italic]          [name:MinionPro-ItSubh]     [features=default]
  \definefontsynonym [SerifSubhead-BoldItalic]      [name:MinionPro-BoldItSubh] [features=default]
  \definefontsynonym [SerifSubhead-Caps-Regular]    [name:MinionPro-Subh]       [features=smallcaps]
  \definefontsynonym [SerifSubhead-Caps-Bold]       [name:MinionPro-BoldSubh]   [features=smallcaps]
  \definefontsynonym [SerifSubhead-Caps-Italic]     [name:MinionPro-ItSubh]     [features=smallcaps]
  \definefontsynonym [SerifSubhead-Caps-BoldItalic] [name:MinionPro-BoldItSubh] [features=smallcaps]
  

  \definefontsynonym [SerifDisplay-Regular]         [name:MinionPro-Disp]       [features=default]
  \definefontsynonym [SerifDisplay-Bold]            [name:MinionPro-BoldDisp]   [features=default]
  \definefontsynonym [SerifDisplay-Italic]          [name:MinionPro-ItDisp]     [features=default]
  \definefontsynonym [SerifDisplay-BoldItalic]      [name:MinionPro-BoldItDisp] [features=default]
  \definefontsynonym [SerifDisplay-Caps-Regular]    [name:MinionPro-Disp]       [features=smallcaps]
  \definefontsynonym [SerifDisplay-Caps-Bold]       [name:MinionPro-BoldDisp]   [features=smallcaps]
  \definefontsynonym [SerifDisplay-Caps-Italic]     [name:MinionPro-ItDisp]     [features=smallcaps]
  \definefontsynonym [SerifDisplay-Caps-BoldItalic] [name:MinionPro-BoldItDisp] [features=smallcaps]

\stoptypescript

%opticals:
\starttypescript [all] [environment] [size]

  \definebodyfontenvironment [minionmyriad][4pt]
    [\s!text=4pt,\s!script=4pt,\s!scriptscript=4pt,
     \c!x=4pt,\c!xx=4pt,\c!big=6pt,\c!small=4pt]

  \definebodyfontenvironment [minionmyriad][5pt]
    [\s!text=5pt,\s!script=5pt,\s!scriptscript=5pt,
     \c!x=5pt,\c!xx=5pt,\c!big=7pt,\c!small=5pt]

  \definebodyfontenvironment [minionmyriad][6pt]
    [\s!text=6pt,\s!script=5pt,\s!scriptscript=5pt,
     \c!x=5pt,\c!xx=5pt,\c!big=8pt,\c!small=5pt]

  \definebodyfontenvironment [minionmyriad][7pt]
    [\s!text=7pt,\s!script=6pt,\s!scriptscript=5pt,
     \c!x=6pt,\c!xx=5pt,\c!big=9pt,\c!small=5pt]

  \definebodyfontenvironment [minionmyriad][8pt]
    [\s!text=8pt,\s!script=6pt,\s!scriptscript=5pt,
     \c!x=6pt,\c!xx=5pt,\c!big=10pt,\c!small=6pt]

  \definebodyfontenvironment [minionmyriad][9pt]
    [\s!text=9pt,\s!script=7pt,\s!scriptscript=5pt,
     \c!x=7pt,\c!xx=5pt,\c!big=11pt,\c!small=7pt]

  \definebodyfontenvironment [minionmyriad][10pt]
    [\s!text=10pt,\s!script=7pt,\s!scriptscript=5pt,
     \c!x=8pt,\c!xx=6pt,\c!big=12pt,\c!small=8pt]

  \definebodyfontenvironment [minionmyriad][11pt]
    [\s!text=11pt,\s!script=8pt,\s!scriptscript=6pt,
     \c!x=9pt,\c!xx=7pt,\c!big=13pt,\c!small=9pt]

  \definebodyfontenvironment [minionmyriad][12pt]
    [\s!text=12pt,\s!script=9pt,\s!scriptscript=7pt,
     \c!x=10pt,\c!xx=8pt,\c!big=14pt,\c!small=10pt]

  \definebodyfontenvironment [minionmyriad][13pt]
    [\s!text=13pt,\s!script=10pt,\s!scriptscript=8pt,
     \c!x=11pt,\c!xx=9pt,\c!big=16pt,\c!small=11pt]

  \definebodyfontenvironment [minionmyriad][14pt]
    [\s!text=14pt,\s!script=10pt,\s!scriptscript=7pt,
     \c!x=12pt,\c!xx=10pt,\c!big=16pt,\c!small=12pt]

  \definebodyfontenvironment [minionmyriad][16pt]
    [\s!text=16pt,\s!script=12pt,\s!scriptscript=9pt,
     \c!x=13pt,\c!xx=11pt,\c!big=18pt,\c!small=14pt]

  \definebodyfontenvironment [minionmyriad][18pt]
	    [\s!text=18pt,\s!script=16pt,\s!scriptscript=14pt,
	     \c!x=16pt,\c!xx=14pt,\c!big=22pt,\c!small=16pt]

  \definebodyfontenvironment [minionmyriad][22pt]
	    [\s!text=22pt,\s!script=22pt,\s!scriptscript=18pt,
	     \c!x=18pt,\c!xx=16pt,\c!big=28pt,\c!small=18pt]

  \definebodyfontenvironment [minionmyriad][28pt]
	    [\s!text=28pt,\s!script=22pt,\s!scriptscript=18pt,
	     \c!x=22pt,\c!xx=18pt,\c!big=28pt,\c!small=22pt]
	
\stoptypescript

\starttypescript [serif] [opticals] [size]
  \definebodyfont [4pt,5pt,6pt,7pt,8pt] [rm] 
    [tf=SerifCaption-Regular      sa 1,
     bf=SerifCaption-Bold         sa 1,
     it=SerifCaption-Italic       sa 1,
     sl=SerifCaption-Slanted      sa 1,
     bi=SerifCaption-BoldItalic   sa 1,
     bs=SerifCaption-BoldSlanted  sa 1,
     sc=SerifCaption-Caps-Regular     sa 1,
     sci=SerifCaption-Caps-Italic     sa 1,
     scb=SerifCaption-Caps-Bold     sa 1,
     scbi=SerifCaption-Caps-BoldItalic     sa 1]

  \definebodyfont [9pt,10pt,11pt,12pt,13pt] [rm] 
    [tf=SerifRegular-Regular      sa 2,
     bf=SerifRegular-Bold         sa 2,
     it=SerifRegular-Italic       sa 1,
     sl=SerifRegular-Slanted      sa 1,
     bi=SerifRegular-BoldItalic   sa 2,
     bs=SerifRegular-BoldSlanted  sa 1,
     sc=SerifRegular-Caps-Regular   sa 1,
     sci=SerifRegular-Caps-Italic   sa 1,
     scb=SerifRegular-Caps-Bold    sa 1,
	 scbi=SerifRegular-Caps-BoldItalic sa 1]

  \definebodyfont [14pt,16pt,18pt] [rm] 
    [tf=SerifSubhead-Regular      sa 1,
     bf=SerifSubhead-Bold         sa 1,
     it=SerifSubhead-Italic       sa 1,
     sl=SerifSubhead-Slanted      sa 1,
     bi=SerifSubhead-BoldItalic   sa 1,
     bs=SerifSubhead-BoldSlanted  sa 1,
     sc=SerifSubhead-Caps-Regular    sa 1,
     sci=SerifSubhead-Caps-Italic     sa 1,
     scb=SerifSubhead-Caps-Bold     sa 1,
     scbi=SerifSubhead-Caps-BoldItalic     sa 1]

  \definebodyfont[22pt,28pt] [rm] 
    [tf=SerifDisplay-Regular      sa 1,
     bf=SerifDisplay-Bold         sa 1,
     it=SerifDisplay-Italic       sa 1,
     sl=SerifDisplay-Slanted      sa 1,
     bi=SerifDisplay-BoldItalic   sa 1,
     bs=SerifDisplay-BoldSlanted  sa 1,
     sc=SerifDisplay-Caps-Regular     sa 1,
     sci=SerifDisplay-Caps-Italic     sa 1,
     scb=SerifDisplay-Caps-Bold     sa 1,
     scbi=SerifDisplay-Caps-BoldItalic     sa 1]
\stoptypescript

\starttypescript[all] [normal] [size]
\definebodyfont[4pt,5pt,6pt,7pt,8pt,9pt,10pt,11pt,12pt,13pt,14pt,16pt,18pt,22pt,28pt] [ss]
    [tf=Sans      sa 1,
     bf=SansBold         sa 1,
     it=SansItalic       sa 1,
     sl=SansSlanted      sa 1,
     bi=SansBoldItalic   sa 1,
     bs=SansBoldSlanted  sa 1,
     sc=Sans-Caps     sa 1,
     sci=Sans-Caps-Italic     sa 1,
     scb=Sans-Caps-Bold     sa 1,
     scbi=Sans-Caps-BoldItalic     sa 1]
\stoptypescript

%typefaces:
\starttypescript [MinionProMyriadPro]
	\definetypeface [minionmyriad] [rm] [serif] [minion-pro] [opticals,environment]
	\definetypeface [minionmyriad] [ss] [sans] [myriad-pro]  [normal,environment]
	%\definetypeface [minionmyriad] [tt] [mono] [myriad-pro]  [normal,environment]
	%\definetypeface [minionmyriad] [mm] [math] [asana] [dtp]
\stoptypescript
