% Defines synonymes for the fonts that are used for the postscript family.
% These font synonymes are not the final ones because they are mapped again
% by the reencode typescript.

\starttypescript [sans] [helvetica] [texnansi,ec,8r]
  \definefontsynonym [Helvetica]             [\typefaceencoding-xyz-phvr8a] [encoding=\typefaceencoding]
  \definefontsynonym [Helvetica-Bold]        [\typefaceencoding-xyz-phvb8a] [encoding=\typefaceencoding]
  \definefontsynonym [Helvetica-BoldOblique] [\typefaceencoding-xyz-phvbo8a][encoding=\typefaceencoding]
  \definefontsynonym [Helvetica-Oblique]     [\typefaceencoding-xyz-phvro8a][encoding=\typefaceencoding]
\stoptypescript

\starttypescript [serif] [times] [texnansi,ec,8r]
  \definefontsynonym [Times-Roman]      [\typefaceencoding-xyz-ptmr8a] [encoding=\typefaceencoding]
  \definefontsynonym [Times-Bold]       [\typefaceencoding-xyz-ptmb8a] [encoding=\typefaceencoding]
  \definefontsynonym [Times-BoldItalic] [\typefaceencoding-xyz-ptmbi8a][encoding=\typefaceencoding]
  \definefontsynonym [Times-Italic]     [\typefaceencoding-xyz-ptmri8a][encoding=\typefaceencoding]
\stoptypescript

\starttypescript [mono] [courier] [texnansi,ec,8r]
  \definefontsynonym [Courier]             [\typefaceencoding-xyz-pcrr8a] [encoding=\typefaceencoding]
  \definefontsynonym [Courier-Bold]        [\typefaceencoding-xyz-pcrb8a] [encoding=\typefaceencoding]
  \definefontsynonym [Courier-BoldOblique] [\typefaceencoding-xyz-pcrbo8a][encoding=\typefaceencoding]
  \definefontsynonym [Courier-Oblique]     [\typefaceencoding-xyz-pcrro8a][encoding=\typefaceencoding]
\stoptypescript

% The reencode typescript maps the font synonymes that are used for the postscript
% family to fonts that are reencoded.

\starttypescript [reencode] [texnansi,ec,8r] [texnansi,ec,8r]
  \definefontsynonym [\typescripttwo-xyz-phvr8a] [\typescripttwo-\typescriptthree-phvr8a] [encoding=\typescripttwo]
  \definefontsynonym [\typescripttwo-xyz-phvb8a] [\typescripttwo-\typescriptthree-phvb8a] [encoding=\typescripttwo]
  \definefontsynonym [\typescripttwo-xyz-phvbo8a][\typescripttwo-\typescriptthree-phvbo8a][encoding=\typescripttwo]
  \definefontsynonym [\typescripttwo-xyz-phvro8a][\typescripttwo-\typescriptthree-phvro8a][encoding=\typescripttwo]
  \definefontsynonym [\typescripttwo-xyz-ptmr8a] [\typescripttwo-\typescriptthree-ptmr8a] [encoding=\typescripttwo]
  \definefontsynonym [\typescripttwo-xyz-ptmb8a] [\typescripttwo-\typescriptthree-ptmb8a] [encoding=\typescripttwo]
  \definefontsynonym [\typescripttwo-xyz-ptmbi8a][\typescripttwo-\typescriptthree-ptmbi8a][encoding=\typescripttwo]
  \definefontsynonym [\typescripttwo-xyz-ptmri8a][\typescripttwo-\typescriptthree-ptmri8a][encoding=\typescripttwo]
  \definefontsynonym [\typescripttwo-xyz-pcrr8a] [\typescripttwo-\typescriptthree-pcrr8a] [encoding=\typescripttwo]
  \definefontsynonym [\typescripttwo-xyz-pcrb8a] [\typescripttwo-\typescriptthree-pcrb8a] [encoding=\typescripttwo]
  \definefontsynonym [\typescripttwo-xyz-pcrbo8a][\typescripttwo-\typescriptthree-pcrbo8a][encoding=\typescripttwo]
  \definefontsynonym [\typescripttwo-xyz-pcrro8a][\typescripttwo-\typescriptthree-pcrro8a][encoding=\typescripttwo]
\stoptypescript

% Adapted copy of the ConTeXt typescripts that are used for the postscript family.

\starttypescript [builtInPostscript] [texnansi,ec,qx,8r,t5,uc]
  \definetypeface [builtInPostscript] [rm] [serif] [builtInTimes]     [default] [encoding=\typescripttwo]
  \definetypeface [builtInPostscript] [ss] [sans]  [builtInHelvetica] [default] [rscale=.9,encoding=\typescripttwo]
  \definetypeface [builtInPostscript] [tt] [mono]  [builtInCourier]   [default] [rscale=1.1,encoding=\typescripttwo]
  \definetypeface [builtInPostscript] [mm] [math]  [builtInTimes]     [default]
\stoptypescript

\starttypescript [sans] [builtInHelvetica] [texnansi,ec,8r]
  \definefontsynonym [BuiltInHelvetica]             [\typefaceencoding-phvr8a] [encoding=\typefaceencoding]
  \definefontsynonym [BuiltInHelvetica-Bold]        [\typefaceencoding-phvb8a] [encoding=\typefaceencoding]
  \definefontsynonym [BuiltInHelvetica-BoldOblique] [\typefaceencoding-phvbo8a][encoding=\typefaceencoding]
  \definefontsynonym [BuiltInHelvetica-Oblique]     [\typefaceencoding-phvro8a][encoding=\typefaceencoding]
\stoptypescript

\starttypescript [serif] [builtInTimes] [texnansi,ec,8r]
  \definefontsynonym [BuiltInTimes-Roman]      [\typefaceencoding-ptmr8a] [encoding=\typefaceencoding]
  \definefontsynonym [BuiltInTimes-Bold]       [\typefaceencoding-ptmb8a] [encoding=\typefaceencoding]
  \definefontsynonym [BuiltInTimes-BoldItalic] [\typefaceencoding-ptmbi8a][encoding=\typefaceencoding]
  \definefontsynonym [BuiltInTimes-Italic]     [\typefaceencoding-ptmri8a][encoding=\typefaceencoding]
\stoptypescript

\starttypescript [mono] [builtInCourier] [texnansi,ec,8r]
  \definefontsynonym [BuiltInCourier]             [\typefaceencoding-pcrr8a] [encoding=\typefaceencoding]
  \definefontsynonym [BuiltInCourier-Bold]        [\typefaceencoding-pcrb8a] [encoding=\typefaceencoding]
  \definefontsynonym [BuiltInCourier-BoldOblique] [\typefaceencoding-pcrbo8a][encoding=\typefaceencoding]
  \definefontsynonym [BuiltInCourier-Oblique]     [\typefaceencoding-pcrro8a][encoding=\typefaceencoding]
\stoptypescript

\starttypescript [sans] [builtInHelvetica] [name]
  \definefontsynonym [Sans]            [BuiltInHelvetica]
  \definefontsynonym [SansBold]        [BuiltInHelvetica-Bold]
  \definefontsynonym [SansItalic]      [BuiltInHelvetica-Oblique]
  \definefontsynonym [SansSlanted]     [BuiltInHelvetica-Oblique]
  \definefontsynonym [SansBoldItalic]  [BuiltInHelvetica-BoldOblique]
  \definefontsynonym [SansBoldSlanted] [BuiltInHelvetica-BoldOblique]
  \definefontsynonym [SansCaps]        [BuiltInHelvetica]
\stoptypescript

\starttypescript [serif] [builtInTimes] [name]
  \definefontsynonym [Serif]            [BuiltInTimes-Roman]
  \definefontsynonym [SerifBold]        [BuiltInTimes-Bold]
  \definefontsynonym [SerifItalic]      [BuiltInTimes-Italic]
  \definefontsynonym [SerifSlanted]     [BuiltInTimes-Italic]
  \definefontsynonym [SerifBoldItalic]  [BuiltInTimes-BoldItalic]
  \definefontsynonym [SerifBoldSlanted] [BuiltInTimes-BoldItalic]
  \definefontsynonym [SerifCaps]        [BuiltInTimes-Roman]
\stoptypescript

\starttypescript [mono] [builtInCourier] [name]
  \definefontsynonym [Mono]            [BuiltInCourier]
  \definefontsynonym [MonoBold]        [BuiltInCourier-Bold]
  \definefontsynonym [MonoItalic]      [BuiltInCourier-Oblique]
  \definefontsynonym [MonoSlanted]     [BuiltInCourier-Oblique]
  \definefontsynonym [MonoBoldItalic]  [BuiltInCourier-BoldOblique]
  \definefontsynonym [MonoBoldSlanted] [BuiltInCourier-BoldOblique]
  \definefontsynonym [MonoCaps]        [BuiltInCourier]
\stoptypescript
