Debian Codegraph @

texmf-dist/tex/luatex/luaotfload/fontloader-fonts-mis.lua

raw
1 if not modules then modules = { } end modules ['luatex-font-mis'] = {
2 version = 1.001,
3 comment = "companion to luatex-*.tex",
4 author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
5 copyright = "PRAGMA ADE / ConTeXt Development Team",
6 license = "see context related readme files"
7 }
8
9 if context then
10 os.exit()
11 end
12
13 local currentfont = font.current
14
15 local hashes = fonts.hashes
16 local identifiers = hashes.identifiers or { }
17 local marks = hashes.marks or { }
18
19 hashes.identifiers = identifiers
20 hashes.marks = marks
21
22 table.setmetatableindex(marks,function(t,k)
23 if k == true then
24 return marks[currentfont()]
25 else
26 local resources = identifiers[k].resources or { }
27 local marks = resources.marks or { }
28 t[k] = marks
29 return marks
30 end
31 end)
32
33 function font.each()
34 return table.sortedhash(fonts.hashes.identifiers)
35 end