summaryrefslogtreecommitdiff
path: root/tex/context/base/s-fonts-tables.mkiv
blob: e962f952d14fd4b7d33ac64ff4b895bf482c2a4f (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

\startmodule[fonts-tables]

\registerctxluafile{s-fonts-tables}{}

\installmodulecommandluasingle \showfonttables        {moduledata.fonts.tables.showall}
\installmodulecommandluasingle \showfontproperties    {moduledata.fonts.tables.showproperties}
\installmodulecommandluasingle \showfontparameters    {moduledata.fonts.tables.showparameters}
\installmodulecommandluasingle \showfontpositionings  {moduledata.fonts.tables.showpositionings}
\installmodulecommandluasingle \showfontsubstitutions {moduledata.fonts.tables.showsubstitutions}

\stopmodule

\continueifinputfile{s-fonts-tables.mkiv}

\usemodule[art-01]

\setupbodyfont
  [cambria]

\starttext
    \showfonttables[title=Cambria]
\stoptext