bachotex-2017-variablefonts-demo.tex /size: 1415 b    last modification: 2020-07-01 14:35
1% macros=mkvi
2
3\usemodule[art-01] \dontcomplain
4
5\starttexdefinition unexpanded TestFont #font#variant#size
6    \bgroup
7        \definedfont[name:#font#variant*default @ #size]
8        \setupinterlinespace
9      % \showstruts
10      % \strut
11        \samplefile{tufte}
12        \par
13    \egroup
14\stoptexdefinition
15
16\starttext
17
18\dorecurse {5} {
19
20    \dostepwiserecurse {8} {14} {1} { % 30 fonts
21        \TestFont {adobevariablefontprototype} {extralight} {##1pt}
22        \TestFont {adobevariablefontprototype} {light}      {##1pt}
23        \TestFont {adobevariablefontprototype} {regular}    {##1pt}
24        \TestFont {adobevariablefontprototype} {semibold}   {##1pt}
25        \TestFont {adobevariablefontprototype} {bold}       {##1pt}
26        \TestFont {adobevariablefontprototype} {black}      {##1pt}
27    }
28
29    \page
30
31  % \dostepwiserecurse {8} {14} {1} { % 40 fonts
32  %     \TestFont {avenirnextvariable} {regular}          {##1pt}
33  %     \TestFont {avenirnextvariable} {medium}           {##1pt}
34  %     \TestFont {avenirnextvariable} {bold}             {##1pt}
35  %     \TestFont {avenirnextvariable} {heavy }           {##1pt}
36  %     \TestFont {avenirnextvariable} {condensed}        {##1pt}
37  %     \TestFont {avenirnextvariable} {medium condensed} {##1pt}
38  %     \TestFont {avenirnextvariable} {bold condensed}   {##1pt}
39  %     \TestFont {avenirnextvariable} {heavy condensed}  {##1pt}
40  % }
41
42}
43
44\stoptext
45