summaryrefslogtreecommitdiff
path: root/doc/context/presentations/bachotex/2017/bachotex-2017-variablefonts-demo.tex
blob: e9543a30a148a57e239271baf43f8d9791554af8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
% macros=mkvi

\usemodule[art-01] \dontcomplain

\starttexdefinition unexpanded TestFont #font#variant#size
    \bgroup
        \definedfont[name:#font#variant*default @ #size]
        \setupinterlinespace
      % \showstruts
      % \strut
        \samplefile{tufte}
        \par
    \egroup
\stoptexdefinition

\starttext

\dorecurse {5} {

    \dostepwiserecurse {8} {14} {1} { % 30 fonts
        \TestFont {adobevariablefontprototype} {extralight} {##1pt}
        \TestFont {adobevariablefontprototype} {light}      {##1pt}
        \TestFont {adobevariablefontprototype} {regular}    {##1pt}
        \TestFont {adobevariablefontprototype} {semibold}   {##1pt}
        \TestFont {adobevariablefontprototype} {bold}       {##1pt}
        \TestFont {adobevariablefontprototype} {black}      {##1pt}
    }

    \page

  % \dostepwiserecurse {8} {14} {1} { % 40 fonts
  %     \TestFont {avenirnextvariable} {regular}          {##1pt}
  %     \TestFont {avenirnextvariable} {medium}           {##1pt}
  %     \TestFont {avenirnextvariable} {bold}             {##1pt}
  %     \TestFont {avenirnextvariable} {heavy }           {##1pt}
  %     \TestFont {avenirnextvariable} {condensed}        {##1pt}
  %     \TestFont {avenirnextvariable} {medium condensed} {##1pt}
  %     \TestFont {avenirnextvariable} {bold condensed}   {##1pt}
  %     \TestFont {avenirnextvariable} {heavy condensed}  {##1pt}
  % }

}

\stoptext