summaryrefslogtreecommitdiff
path: root/tex/context/modules/mkiv/s-fonts-variable.mkiv
blob: 43cb1d32c595d2baa913ee83a4df7c290a24794c (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
%D \module
%D   [      file=s-fonts-variable,
%D        version=2017.02.18,
%D          title=\CONTEXT\ Style File,
%D       subtitle=Show Variable Font Properties ,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

% begin info
%
% title   : variable information (experimental)
%
% comment : variable fonts contain extra information styles, axis, regions
% status  : experimental, used for luatex testing
%
% end info

\startmodule[fonts-variable]

\registerctxluafile{s-fonts-variable}{}

\installmodulecommandluasingle \showfontvariations {moduledata.fonts.variable.showvariations}

\unexpanded\def\showfontspacing
  {\begingroup
   \scratchskip \interwordspace plus \interwordstretch minus \interwordshrink
   \normalexpanded{\hpack\bgroup
      \tt\txx
      sp: \the\scratchskip\hskip\emwidth
      es: \the\extraspace \hskip\emwidth
      ex: \the\exheight   \hskip\emwidth
      em: \the\emwidth    \hskip\emwidth
   \egroup}%
   \endgroup}

\stopmodule

\continueifinputfile{s-fonts-variable.mkiv}

\usemodule[art-01]

\setuphead[section][before={\testpage[5]\blank[2*big]}]

% \enabletrackers[modules.fonts.variables.glyphs]
% \enabletrackers[modules.fonts.variables.kerns]

\nopdfcompression

\starttext

%     \startbuffer[zycon]
%         \char008986\relax\quad
%         \char009728\relax\quad
%         \char010031\relax\quad
%         \char010143\relax\quad
%         \char011044\relax\quad
%         \char127773\relax\quad
%         \char127989\relax\quad
%         \char128008\relax\quad
%         \char128021\relax\quad
%         \char128034\relax\quad
%         \char128161\relax\quad
%         \char128274\relax\quad
%         \char128347\relax\quad
%         \char128400\relax\quad
%         \char128692\relax\quad
%         \char129417\relax\quad
%         \char129422\relax\quad
%         \char983040\relax\par
%     \stopbuffer

%     \showfontvariations
%       [font=file:adobevfprototype.otf]

%     \showfontvariations
%       [font=file:avenirnextvariable.ttf]

%     \showfontvariations
%       [font=file:DecoVar-VF.ttf]

% \showfontvariations
%   [font=file:VotoSerifGX.ttf,
%    max=15]

%     \showfontvariations
%       [font=file:Selawik-Variable.ttf]

%     \showfontvariations
%       [font=file:LibreFranklinGX-Romans.ttf]

% \showfontvariations
%   [font=file:Zycon.ttf,
%    sample={\getbuffer[zycon]}]

% \showfontvariations
%   [font=file:kairossansvariable.ttf]

%  \showfontvariations
%    [font=file:sourcecode-regular.otf]

% \showfontvariations
%   [font=file:sourcecodevariable-roman.otf]

% \showfontvariations
%   [font=file:sourcecodevariable-italic.otf]

%  \showfontvariations
%    [font=file:AmstelvarAlpha-VF.ttf]

%  \showfontvariations
%    [font=file:bahnschrift.ttf]

%  \showfontvariations
%    [font=file:junicodetwobetavf-roman.ttf]
%    [font=file:junicodetwobeta-regular-vf.otf]

% \showfontvariations
%   [font=file:sitka.ttc]

% For Alan:

% \usemodule[article-basic]
% \usemodule[fonts-variable]
% \starttext
%     \showfontvariations[font=file:goldmansansitvf_wght.ttf]
%     \showfontvariations[font=file:goldmansansvf_wght.ttf]
%     \showfontvariations[font=file:goldmansanscdvf_wght.ttf]
% \stoptext

\stoptext