s-fonts-variable.mkiv /size: 3637 b    last modification: 2024-01-16 09:03
1%D \module
2%D   [      file=s-fonts-variable,
3%D        version=2017.02.18,
4%D          title=\CONTEXT\ Style File,
5%D       subtitle=Show Variable Font Properties ,
6%D         author=Hans Hagen,
7%D           date=\currentdate,
8%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9%C
10%C This module is part of the \CONTEXT\ macro||package and is
11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12%C details.
13
14% begin info
15%
16% title   : variable information (experimental)
17%
18% comment : variable fonts contain extra information styles, axis, regions
19% status  : experimental, used for luatex testing
20%
21% end info
22
23\startmodule[fonts-variable]
24
25\registerctxluafile{s-fonts-variable}{}
26
27\installmodulecommandluasingle \showfontvariations {moduledata.fonts.variable.showvariations}
28
29\unexpanded\def\showfontspacing
30  {\begingroup
31   \scratchskip \interwordspace plus \interwordstretch minus \interwordshrink
32   \normalexpanded{\hpack\bgroup
33      \tt\txx
34      sp: \the\scratchskip\hskip\emwidth
35      es: \the\extraspace \hskip\emwidth
36      ex: \the\exheight   \hskip\emwidth
37      em: \the\emwidth    \hskip\emwidth
38   \egroup}%
39   \endgroup}
40
41\stopmodule
42
43\continueifinputfile{s-fonts-variable.mkiv}
44
45\usemodule[art-01]
46
47\setuphead[section][before={\testpage[5]\blank[2*big]}]
48
49% \enabletrackers[modules.fonts.variables.glyphs]
50% \enabletrackers[modules.fonts.variables.kerns]
51
52\nopdfcompression
53
54\starttext
55
56%     \startbuffer[zycon]
57%         \char008986\relax\quad
58%         \char009728\relax\quad
59%         \char010031\relax\quad
60%         \char010143\relax\quad
61%         \char011044\relax\quad
62%         \char127773\relax\quad
63%         \char127989\relax\quad
64%         \char128008\relax\quad
65%         \char128021\relax\quad
66%         \char128034\relax\quad
67%         \char128161\relax\quad
68%         \char128274\relax\quad
69%         \char128347\relax\quad
70%         \char128400\relax\quad
71%         \char128692\relax\quad
72%         \char129417\relax\quad
73%         \char129422\relax\quad
74%         \char983040\relax\par
75%     \stopbuffer
76
77%     \showfontvariations
78%       [font=file:adobevfprototype.otf]
79
80%     \showfontvariations
81%       [font=file:avenirnextvariable.ttf]
82
83%     \showfontvariations
84%       [font=file:DecoVar-VF.ttf]
85
86% \showfontvariations
87%   [font=file:VotoSerifGX.ttf,
88%    max=15]
89
90%     \showfontvariations
91%       [font=file:Selawik-Variable.ttf]
92
93%     \showfontvariations
94%       [font=file:LibreFranklinGX-Romans.ttf]
95
96% \showfontvariations
97%   [font=file:Zycon.ttf,
98%    sample={\getbuffer[zycon]}]
99
100% \showfontvariations
101%   [font=file:kairossansvariable.ttf]
102
103%  \showfontvariations
104%    [font=file:sourcecode-regular.otf]
105
106% \showfontvariations
107%   [font=file:sourcecodevariable-roman.otf]
108
109% \showfontvariations
110%   [font=file:sourcecodevariable-italic.otf]
111
112%  \showfontvariations
113%    [font=file:AmstelvarAlpha-VF.ttf]
114
115 \showfontvariations
116   [font=file:bahnschrift.ttf]
117
118%  \showfontvariations
119%    [font=file:junicodetwobetavf-roman.ttf]
120%    [font=file:junicodetwobeta-regular-vf.otf]
121
122% \showfontvariations
123%   [font=file:sitka.ttc]
124
125% For Alan:
126
127% \usemodule[article-basic]
128% \usemodule[fonts-variable]
129% \starttext
130%     \showfontvariations[font=file:goldmansansitvf_wght.ttf]
131%     \showfontvariations[font=file:goldmansansvf_wght.ttf]
132%     \showfontvariations[font=file:goldmansanscdvf_wght.ttf]
133% \stoptext
134
135% \showfontvariations
136%   [font=file:nupuram-vf.otf,features=malayalam-two,sample=test നൂപുരം]
137%   [font=file:nupuram-vf.ttf,features=malayalam-two,sample=test നൂപുരം]
138
139% \showfontvariations
140%   [font=file:robotoflex.ttf]
141
142\stoptext
143