1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16\startmodule [ fonts tables ]
17
18\registerctxluafile { s fonts tables }{}
19
20\definetabulate [ Pair ] [ T cw ( 3 em ) T cw ( 3 em ) Tw ( 1 0 em ) Tw ( 1 0 em ) cw ( 4 em ) cw ( 4 em ) ]
21\definetabulate [ Single ] [ T cw ( 3 em ) Tw ( 1 0 em ) cw ( 4 em ) cw ( 4 em ) ]
22\definetabulate [ SingleKern ][ T cw ( 3 em ) Trw ( 5 em ) cw ( 4 em ) cw ( 4 em ) ]
23\definetabulate [ PairKern ] [ T cw ( 3 em ) T cw ( 3 em ) Trw ( 5 em ) cw ( 4 em ) cw ( 4 em ) ]
24
25\definehead
26 [ sequence ]
27 [ subsubject ]
28 [ style = \ttbf ]
29
30\definecolor
31 [ bbcolor ]
32 [ t = . 5 , a = 1 , s = . 5 ]
33
34\definefontfeature
35 [ boundingbox ]
36 [ boundingbox = { background , bbcolor } ]
37
38\installmodulecommandluasingle \showfontproperties { moduledata . fonts . tables . showproperties }
39\installmodulecommandluasingle \showfontparameters { moduledata . fonts . tables . showparameters }
40\installmodulecommandluasingle \showfontpositionings { moduledata . fonts . tables . showpositionings }
41\installmodulecommandluasingle \showfontligatures { moduledata . fonts . tables . showligatures }
42\installmodulecommandluasingle \showfontsubstitutions { moduledata . fonts . tables . showsubstitutions }
43\installmodulecommandluasingle \showfontunicodevariants { moduledata . fonts . tables . showunicodevariants }
44
45\stopmodule
46
47\continueifinputfile { s fonts tables . mkiv }
48
49\usemodule [ art 0 1 ]
50
51\setupbodyfont
52 [ cambria ]
53
54\starttext
55 \showfontproperties [ name = cambria ]
56\stoptext
57 |