1if not modules then modules = { } end modules ['font-ini'] = {
2 version = 1.001,
3 comment = "companion to font-ini.mkiv",
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
12
13local allocate = utilities.storage.allocate
14local sortedhash = table.sortedhash
15
16fonts = fonts or { }
17local fonts = fonts
18
19local identifiers = allocate()
20
21fonts.hashes = fonts.hashes or { identifiers = identifiers }
22fonts.tables = fonts.tables or { }
23fonts.helpers = fonts.helpers or { }
24fonts.tracers = fonts.tracers or { }
25fonts.specifiers = fonts.specifiers or { }
26
27fonts.analyzers = { }
28fonts.readers = { }
29fonts.definers = { methods = { } }
30fonts.loggers = { register = function() end }
31
32if context then
33
34 font.originaleach = font.each
35
36 function font.each()
37 return sortedhash(identifiers)
38 end
39
40 fontloader = nil
41
42end
43
44
45
46
47
48fonts.privateoffsets = {
49 textbase = 0xF0000,
50 textextrabase = 0xFD000,
51 mathextrabase = 0xFE000,
52 mathbase = 0xFF000,
53 keepnames = false,
54}
55
56if node and not tex.getfontoffamily then
57 tex.getfontoffamily = node.family_font
58end
59 |