blob: 07e80377c0ca2d85c88124ad752dfbce62541574 (
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
|
%D \module
%D [ file=s-fonts-tables,
%D version=2011.10.10,
%D title=\CONTEXT\ Style File,
%D subtitle=Basic Font Data Tables,
%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.
% todo: make a mtxrun --script font <name> option
\registerctxluafile{s-fonts-tables}{}
\unexpanded\def\showfonttables[#1]%
{\begingroup
\ctxlua{moduledata.fonts.tables.all("#1")}% currently not interfaced
\endgroup}
\unexpanded\def\showfontproperties {\ctxlua{moduledata.fonts.tables.properties ()}}
\unexpanded\def\showfontparameters {\ctxlua{moduledata.fonts.tables.parameters ()}}
\unexpanded\def\showfontpositionings {\ctxlua{moduledata.fonts.tables.positionings ()}}
\unexpanded\def\showfontsubstitutions{\ctxlua{moduledata.fonts.tables.substitutions()}}
\continueifinputfile{s-fonts-tables.mkiv}
\usemodule[art-01]
\setupbodyfont
[cambria]
\starttext
\showfonttables[title=Cambria]
\stoptext
|