% output=pdf


\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-iwonahz]
  \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 [math] [iwona-light] [name]
  \definefontsynonym [MathRomanBold]     [Iwona-Math-Letters-Heavy]
  \definefontsynonym [MathItalicBold]    [Iwona-Math-Letters-HeavyItalic]
  \definefontsynonym [MathSymbolBold]    [Iwona-Math-Symbols-Heavy]
  \definefontsynonym [MathExtensionBold] [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

\def\test#1%
  {\switchtobodyfont[#1,ss]\noindent \ss #1
   $$\int_{0}^{\infty} \sin^2 x {\rm d}x = \sqrt{1/\alpha \cup\beta}{\bf abc}{\bfm def}{\bfmath ghi}$$}

\definebodyfont [bfmath] [mm]
  [mrbf=MathRomanBold mo 1,
   exbf=MathExtensionBold mo 1,
   mibf=MathItalicBold mo 1,
   sybf=MathSymbolBold mo 1,
   mabf=MathAlphaBold mo 1,
   mbbf=MathBetaBold mo 1,
   mcbf=MathGammaBold mo 1,
   mdbf=MathDeltaBold mo 1]
\starttypescript [bfmath] [modern,computer-modern,latin-modern,iwona,iwona-light] [name]
  \definefontsynonym [MathRomanBold]    [Iwona-Math-Letters-Heavy]
  \definefontsynonym [MathExtension]    [Iwona-Math-Extension-Heavy]
  \definefontsynonym [MathItalicBold]   [Iwona-Math-Letters-HeavyItalic]
  \definefontsynonym [MathSymbolBold]   [Iwona-Math-Symbols-Heavy]
\stoptypescript
\starttypescript [boldmath] [modern,computer-modern,latin-modern,iwona,iwona-light] [name]
  \definefontsynonym [MathRoman]    [Iwona-Math-Letters-Heavy]
  \definefontsynonym [MathExtension]    [Iwona-Math-Extension-Heavy]
  \definefontsynonym [MathItalic]   [Iwona-Math-Letters-HeavyItalic]
  \definefontsynonym [MathSymbol]   [Iwona-Math-Symbols-Heavy]
\stoptypescript

\starttypescript [bfmath] [modern,computer-modern,latin-modern,iwona,iwona-light] [size]

  \definebodyfont [default] [mm]
    [mrbf=rm-iwonah,
     exbf=ex-iwonah,
     mibf=mi-iwonahi,
     sybf=sy-iwonahz]
  \definebodyfont [10pt,11pt,12pt] [mm]
    [mrbf=rm-iwonah,
     exbf=ex-iwonah,
     mibf=mi-iwonahi,
     sybf=sy-iwonahz]

  \definebodyfont [5pt] [mm]
    [mrbf=xcmb10,
     exbf=cmex10,
     mibf=cmmib10,
     sybf=cmbsy10]
\stoptypescript
\starttypescript [boldmath] [modern,computer-modern,latin-modern,iwona,iwona-light] [size]
  \definebodyfont [default] [mm]
    [mrbf=rm-iwonah,
     exbf=ex-iwonah,
     mibf=mi-iwonahi,
     sybf=sy-iwonahz]

  \definebodyfont [10pt,11pt,12pt] [mm]
    [mrbf=rm-iwonah,
     exbf=ex-iwonah,
     mibf=mi-iwonahi,
     sybf=sy-iwonahz]
\stoptypescript

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

\starttext

\test{iwona-light}

\test{iwona}

\test{iwona-medium}

\test{iwona-heavy}

\tracedfontname{MathRomanBold}
\stoptext

