%D \module
%D   [       file=type-optical,
%D        version=2009.03.25,
%D          title=\CONTEXT\ Typescript Macros,
%D       subtitle=Adobe Font Definitions,
%D         author=Wolfgang Schuster,
%D           date=\currentdate,
%D      copyright=Wolfgang Schuster]
%C
%C Copyright 2009 Wolfgang Schuster.
%C This file may be distributed under the GNU General Public License v. 2.0.


% OB
%
% From Minion Pro Opticals release notes:
%
% Caption:	6--8.4 pt
% Regular:	8.5--13.0 pt
% Subhead:	13.1--19.9 pt
% Display:	20.0+ pt



\startsetups [font:optical:serif]

  \definefontsynonym [SerifCaption-Regular]     [SerifRegular-Regular]
  \definefontsynonym [SerifCaption-Bold]        [SerifCaption-Regular]
  \definefontsynonym [SerifCaption-Italic]      [SerifCaption-Regular]
  \definefontsynonym [SerifCaption-Slanted]     [SerifCaption-Italic]
  \definefontsynonym [SerifCaption-BoldItalic]  [SerifCaption-Regular]
  \definefontsynonym [SerifCaption-BoldSlanted] [SerifCaption-BoldItalic]

  \definefontsynonym [SerifRegular-Regular]     [DefaultFont]
  \definefontsynonym [SerifRegular-Bold]        [SerifRegular-Regular]
  \definefontsynonym [SerifRegular-Italic]      [SerifRegular-Regular]
  \definefontsynonym [SerifRegular-Slanted]     [SerifRegular-Italic]
  \definefontsynonym [SerifRegular-BoldItalic]  [SerifRegular-Regular]
  \definefontsynonym [SerifRegular-BoldSlanted] [SerifRegular-BoldItalic]

  \definefontsynonym [SerifSubhead-Regular]     [SerifRegular-Regular]
  \definefontsynonym [SerifSubhead-Bold]        [SerifSubhead-Regular]
  \definefontsynonym [SerifSubhead-Italic]      [SerifSubhead-Regular]
  \definefontsynonym [SerifSubhead-Slanted]     [SerifSubhead-Italic]
  \definefontsynonym [SerifSubhead-BoldItalic]  [SerifSubhead-Regular]
  \definefontsynonym [SerifSubhead-BoldSlanted] [SerifSubhead-BoldItalic]

  \definefontsynonym [SerifDisplay-Regular]     [SerifRegular-Regular]
  \definefontsynonym [SerifDisplay-Bold]        [SerifDisplay-Regular]
  \definefontsynonym [SerifDisplay-Italic]      [SerifDisplay-Regular]
  \definefontsynonym [SerifDisplay-Slanted]     [SerifDisplay-Italic]
  \definefontsynonym [SerifDisplay-BoldItalic]  [SerifDisplay-Regular]
  \definefontsynonym [SerifDisplay-BoldSlanted] [SerifDisplay-BoldItalic]

\stopsetups

\startsetups [font:optical:sans]

  \definefontsynonym [SansCaption-Regular]     [SansRegular-Regular]
  \definefontsynonym [SansCaption-Bold]        [SansCaption-Regular]
  \definefontsynonym [SansCaption-Italic]      [SansCaption-Regular]
  \definefontsynonym [SansCaption-Slanted]     [SansCaption-Italic]
  \definefontsynonym [SansCaption-BoldItalic]  [SansCaption-Regular]
  \definefontsynonym [SansCaption-BoldSlanted] [SansCaption-BoldItalic]

  \definefontsynonym [SansRegular-Regular]     [DefaultFont]
  \definefontsynonym [SansRegular-Bold]        [SansRegular-Regular]
  \definefontsynonym [SansRegular-Italic]      [SansRegular-Regular]
  \definefontsynonym [SansRegular-Slanted]     [SansRegular-Italic]
  \definefontsynonym [SansRegular-BoldItalic]  [SansRegular-Regular]
  \definefontsynonym [SansRegular-BoldSlanted] [SansRegular-BoldItalic]

  \definefontsynonym [SansSubhead-Regular]     [SansRegular-Regular]
  \definefontsynonym [SansSubhead-Bold]        [SansSubhead-Regular]
  \definefontsynonym [SansSubhead-Italic]      [SansSubhead-Regular]
  \definefontsynonym [SansSubhead-Slanted]     [SansSubhead-Italic]
  \definefontsynonym [SansSubhead-BoldItalic]  [SansSubhead-Regular]
  \definefontsynonym [SansSubhead-BoldSlanted] [SansSubhead-BoldItalic]

  \definefontsynonym [SansDisplay-Regular]     [SansRegular-Regular]
  \definefontsynonym [SansDisplay-Bold]        [SansDisplay-Regular]
  \definefontsynonym [SansDisplay-Italic]      [SansDisplay-Regular]
  \definefontsynonym [SansDisplay-Slanted]     [SansDisplay-Italic]
  \definefontsynonym [SansDisplay-BoldItalic]  [SansDisplay-Regular]
  \definefontsynonym [SansDisplay-BoldSlanted] [SansDisplay-BoldItalic]

\stopsetups

\starttypescript [serif] [optical] [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]

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

  \definebodyfont [14.4pt,17.3pt] [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]

  \definebodyfont [20.7pt] [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]

\stoptypescript

\starttypescript [sans] [optical] [size]

  \definebodyfont [4pt,5pt,6pt,7pt,8pt] [ss]
    [tf=SansCaption-Regular     sa 1,
     bf=SansCaption-Bold        sa 1,
     it=SansCaption-Italic      sa 1,
     sl=SansCaption-Slanted     sa 1,
     bi=SansCaption-BoldItalic  sa 1,
     bs=SansCaption-BoldSlanted sa 1]

  \definebodyfont [9pt,10pt,11pt,12pt] [ss]
    [tf=SansRegular-Regular     sa 1,
     bf=SansRegular-Bold        sa 1,
     it=SansRegular-Italic      sa 1,
     sl=SansRegular-Slanted     sa 1,
     bi=SansRegular-BoldItalic  sa 1,
     bs=SansRegular-BoldSlanted sa 1]

  \definebodyfont [14.4pt,17.3pt] [ss]
    [tf=SansSubhead-Regular     sa 1,
     bf=SansSubhead-Bold        sa 1,
     it=SansSubhead-Italic      sa 1,
     sl=SansSubhead-Slanted     sa 1,
     bi=SansSubhead-BoldItalic  sa 1,
     bs=SansSubhead-BoldSlanted sa 1]

  \definebodyfont [20.7pt] [ss]
    [tf=SansDisplay-Regular     sa 1,
     bf=SansDisplay-Bold        sa 1,
     it=SansDisplay-Italic      sa 1,
     sl=SansDisplay-Slanted     sa 1,
     bi=SansDisplay-BoldItalic  sa 1,
     bs=SansDisplay-BoldSlanted sa 1]

\stoptypescript

\starttypescript [serif] [brioso,minion]

  \definefontsynonym [Serif]           [SerifRegular-Regular]
  \definefontsynonym [SerifBold]       [SerifRegular-Bold]
  \definefontsynonym [SerifItalic]     [SerifRegular-Italic]
  \definefontsynonym [SerifBoldItalic] [SerifRegular-BoldItalic]

\stoptypescript

\starttypescript [sans] [cronos]

  \definefontsynonym [Sans]           [SansRegular-Regular]
  \definefontsynonym [SansBold]       [SansRegular-Bold]
  \definefontsynonym [SansItalic]     [SansRegular-Italic]
  \definefontsynonym [SansBoldItalic] [SansRegular-BoldItalic]

\stoptypescript

\starttypescript [serif] [minion]

  \setups[font:optical:serif]

  \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 [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 [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 [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]

\stoptypescript

\starttypescript [serif] [brioso]

  \setups[font:optical:serif]

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

  \definefontsynonym [SerifRegular-Regular]    [name:BriosoPro-Regular]    [features=default]
  \definefontsynonym [SerifRegular-Bold]       [name:BriosoPro-Bold]       [features=default]
  \definefontsynonym [SerifRegular-Italic]     [name:BriosoPro-Italic]     [features=default]
  \definefontsynonym [SerifRegular-BoldItalic] [name:BriosoPro-BoldIt]     [features=default]

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

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

\stoptypescript

\starttypescript [sans] [cronos]

  \setups[font:optical:sans]

  \definefontsynonym [SansCaption-Regular]    [name:CronosPro-Capt]       [features=default]
  \definefontsynonym [SansCaption-Italic]     [name:CronosPro-CaptIt]     [features=default]
  \definefontsynonym [SansCaption-Bold]       [name:CronosPro-BoldCapt]   [features=default]
  \definefontsynonym [SansCaption-BoldItalic] [name:CronosPro-BoldCaptIt] [features=default]

  \definefontsynonym [SansRegular-Regular]    [name:CronosPro-Regular]    [features=default]
  \definefontsynonym [SansRegular-Italic]     [name:CronosPro-Italic]     [features=default]
  \definefontsynonym [SansRegular-Bold]       [name:CronosPro-Bold]       [features=default]
  \definefontsynonym [SansRegular-BoldItalic] [name:CronosPro-BoldIt]     [features=default]

  \definefontsynonym [SansSubhead-Regular]    [name:CronosPro-Subh]       [features=default]
  \definefontsynonym [SansSubhead-Bold]       [name:CronosPro-BoldSubh]   [features=default]
  \definefontsynonym [SansSubhead-Italic]     [name:CronosPro-SubhIt]     [features=default]
  \definefontsynonym [SansSubhead-BoldItalic] [name:CronosPro-BoldSubhIt] [features=default]

  \definefontsynonym [SansDisplay-Regular]    [name:CronosPro-Disp]       [features=default]
  \definefontsynonym [SansDisplay-Bold]       [name:CronosPro-BoldDisp]   [features=default]
  \definefontsynonym [SansDisplay-Italic]     [name:CronosPro-DispIt]     [features=default]
  \definefontsynonym [SansDisplay-BoldItalic] [name:CronosPro-BoldDispIt] [features=default]

\stoptypescript

\starttypescript [brioso,minion]
  \definetypeface [\typescriptone] [rm] [serif] [\typescriptone] [optical]
\stoptypescript

\starttypescript [cronos]
  \definetypeface [\typescriptone] [ss] [sans] [\typescriptone] [optical]
\stoptypescript

\endinput
