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\input mtxcontextcommon.tex
28
29\usemodule[fontscharts]
30\usemodule[fontstables]
31
32\input mtxcontextcommon.tex
33
34\doifdocumentargument {compact} {
35 \setdocumentargument{topspace} {5mm}
36 \setdocumentargument{backspace}{5mm}
37 \setdocumentargument{bodyfont} {8pt}
38}
39
40\doifdocumentargument {verycompact} {
41 \setdocumentargument{topspace} {5mm}
42 \setdocumentargument{backspace}{5mm}
43 \setdocumentargument{bodyfont} {7pt}
44}
45
46\setupbodyfont
47 [dejavu,9pt,tt,\getdocumentargument{bodyfont}]
48
49\setuplayout
50 [header=0cm,
51 footer=1.5cm,
52 topspace=\getdocumentargumentdefault{topspace}{1.5cm},
53 backspace=\getdocumentargumentdefault{backspace}{1.5cm},
54 width=middle,
55 height=middle]
56
57\setuppapersize
58 [\getdocumentargument{paperformatpaper}]
59 [\getdocumentargument{paperformatprint}]
60
61\starttexdefinition unexpanded showfontdetails [#1]
62 \starttitle[title=#1]
63 \startsubject[title=Properties]
64 \showfontproperties[#1]
65 \stopsubject
66 \startsubject[title=Parameters]
67 \showfontparameters[#1]
68 \stopsubject
69 \startsubject[title=Positionings]
70 \showfontpositionings[#1]
71 \stopsubject
72 \startsubject[title=Substitutions]
73 \showfontsubstitutions[#1]
74 \stopsubject
75 \startsubject[title=Unicodevariants]
76 \showfontunicodevariants[#1]
77 \stopsubject
78 \startsubject[title=Ligatures]
79 \showfontligatures[#1]
80 \stopsubject
81 \showfontchart[#1,page=yes]
82 \stoptitle
83\stoptexdefinition
84
85\starttext
86
87 \startluacode
88 local files = document.files
89 if #files > 0 then
90 for i=1,#files do
91 context.showfontdetails { name = files[i] .. "*default" }
92 end
93 else
94 context("No font name(s) given.")
95 end
96 \stopluacode
97
98\stoptext
99 |