s-fonts-missing.mkiv /size: 1381 b    last modification: 2020-07-01 14:35
1%D \module
2%D   [      file=s-fonts-missing,
3%D        version=2011.10.30,
4%D          title=\CONTEXT\ Style File,
5%D       subtitle=Some Missing Character Info,
6%D         author=Hans Hagen,
7%D           date=\currentdate,
8%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9%C
10%C This module is part of the \CONTEXT\ macro||package and is
11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12%C details.
13
14\startmodule[fonts-missing]
15
16\registerctxluafile{s-fonts-missing}{}
17
18\installmodulecommandluasingle \showmissingcharacterslegend {moduledata.fonts.missing.showlegend}
19\installmodulecommandluasingle \showmissingcharacters       {moduledata.fonts.missing.showcharacters}
20
21\stopmodule
22
23\continueifinputfile{s-fonts-missing.mkiv}
24
25% the sooner, the more efficient, see log for details
26
27\enabletrackers[fonts.missing=replace]
28
29% \definefontfeature[default][default][missing=yes] % automatically when enabled
30
31\starttext
32
33    \page legend: \blank
34
35    \showmissingcharacterslegend
36
37    \page sample: \blank
38
39    ½  ¼    {\bf ½  ¼   } \blank
40
41    \startluacode
42        for i=1,1000 do
43            local c = characters.data[i]
44            if c then
45                context.char(c.unicodeslot)
46                context.space()
47            end
48        end
49    \stopluacode
50
51    \page characters: \blank
52
53    \showmissingcharacters
54
55\stoptext
56
57