% Test file for Iwona Math by Taco Hoekwater

\setupoutput[pdftex]

\loadmapfile[iwona-texnansi.map]
\loadmapfile[sy-iwona.map]
\loadmapfile[rm-iwona.map]
\loadmapfile[mi-iwona.map]
\loadmapfile[ex-iwona.map]

\starttypescript [math] [iwona-light] [default]
  \definefontsynonym [Iwona-Math-Letters-Light]       [rm-iwonal]
  \definefontsynonym [Iwona-Math-Letters-LightItalic] [mi-iwonali]
  \definefontsynonym [Iwona-Math-Symbols-Light]       [sy-iwonali]
  \definefontsynonym [Iwona-Math-Extension-Light]     [ex-iwonal]
\stoptypescript

\starttypescript [math] [iwona] [default]
  \definefontsynonym [Iwona-Math-Letters-Regular]       [rm-iwonar]
  \definefontsynonym [Iwona-Math-Letters-RegularItalic] [mi-iwonari]
  \definefontsynonym [Iwona-Math-Symbols-Regular]       [sy-iwonari]
  \definefontsynonym [Iwona-Math-Extension-Regular]     [ex-iwonar]
\stoptypescript

\starttypescript [math] [iwona-medium] [default]
  \definefontsynonym [Iwona-Math-Letters-Medium]       [rm-iwonam]
  \definefontsynonym [Iwona-Math-Letters-MediumItalic] [mi-iwonami]
  \definefontsynonym [Iwona-Math-Symbols-Medium]       [sy-iwonami]
  \definefontsynonym [Iwona-Math-Extension-Medium]     [ex-iwonam]
\stoptypescript


\starttypescript [math] [iwona-heavy] [default]
  \definefontsynonym [Iwona-Math-Letters-Heavy]         [rm-iwonah]
  \definefontsynonym [Iwona-Math-Letters-HeavyItalic]   [mi-iwonahi]
  \definefontsynonym [Iwona-Math-Symbols-Heavy]         [sy-iwonahi]
  \definefontsynonym [Iwona-Math-Extension-Heavy]       [ex-iwonah]
\stoptypescript

\starttypescript [math] [iwona-heavy] [name]
  \definefontsynonym [MathRoman]     [Iwona-Math-Letters-Heavy]
  \definefontsynonym [MathItalic]    [Iwona-Math-Letters-HeavyItalic]
  \definefontsynonym [MathSymbol]    [Iwona-Math-Symbols-Heavy]
  \definefontsynonym [MathExtension] [Iwona-Math-Extension-Heavy]
\stoptypescript

\starttypescript [iwona,iwona-light,iwona-heavy,iwona-medium] [texnansi,ec,8r,uc]

  \definetypeface[\typescriptone][rm][serif][modern]   [default][encoding=\typescripttwo]
  \definetypeface[\typescriptone][ss][sans] [\typescriptone]         [default][encoding=\typescripttwo]
  \definetypeface[\typescriptone][tt][mono] [modern]   [default][encoding=\typescripttwo]
  \definetypeface[\typescriptone][mm][math] [\typescriptone]         [default][encoding=\typescripttwo]

\stoptypescript

\usetypescript[iwona][texnansi]
\usetypescript[iwona-light][texnansi]
\usetypescript[iwona-medium][texnansi]
\usetypescript[iwona-heavy][texnansi]

\def\test#1%
  {\switchtobodyfont[#1,ss]\noindent \ss #1
   $$\int_{0}^{\infty} \sin^2 x {\rm d}x = \sqrt{1/\alpha \cup\beta}$$\blank\input ward}

\setupbodyfont[iwona,ss,12pt]

\starttext

This is iwona, \fontname\font
\blank
\test{iwona-light}
\blank
\test{iwona}
\blank
\test{iwona-medium}
\blank
\test{iwona-heavy}
\stoptext
