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