summaryrefslogtreecommitdiff
path: root/tex/context/modules/mkiv/s-fonts-tables.mkiv
blob: f1340c3eac4662beddd90f07e372dcee9153cde4 (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
%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}{}

\definetabulate[Pair]      [|T|cw(3em)|T|cw(3em)|Tw(10em)|Tw(10em)|cw(4em)|cw(4em)|]
\definetabulate[Single]    [|T|cw(3em)|Tw(10em)|cw(4em)|cw(4em)|]
\definetabulate[SingleKern][|T|cw(3em)|Trw(5em)|cw(4em)|cw(4em)|]
\definetabulate[PairKern]  [|T|cw(3em)|T|cw(3em)|Trw(5em)|cw(4em)|cw(4em)|]

\definehead
  [sequence]
  [subsubject]
  [style=\ttbf]

\definecolor
  [bbcolor]
  [t=.5,a=1,s=.5]

\definefontfeature
  [boundingbox]
  [boundingbox={background,bbcolor}]

\installmodulecommandluasingle \showfontproperties     {moduledata.fonts.tables.showproperties}
\installmodulecommandluasingle \showfontparameters     {moduledata.fonts.tables.showparameters}
\installmodulecommandluasingle \showfontpositionings   {moduledata.fonts.tables.showpositionings}
\installmodulecommandluasingle \showfontligatures      {moduledata.fonts.tables.showligatures}
\installmodulecommandluasingle \showfontsubstitutions  {moduledata.fonts.tables.showsubstitutions}
\installmodulecommandluasingle \showfontunicodevariants{moduledata.fonts.tables.showunicodevariants}

\stopmodule

\continueifinputfile{s-fonts-tables.mkiv}

\usemodule[art-01]

\setupbodyfont
  [cambria]

\starttext
    \showfontproperties[name=cambria]
\stoptext