summaryrefslogtreecommitdiff
path: root/tex/context/base/font-ini.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/font-ini.lua')
-rw-r--r--tex/context/base/font-ini.lua24
1 files changed, 15 insertions, 9 deletions
diff --git a/tex/context/base/font-ini.lua b/tex/context/base/font-ini.lua
index 884b22474..8eeba0ce7 100644
--- a/tex/context/base/font-ini.lua
+++ b/tex/context/base/font-ini.lua
@@ -6,27 +6,33 @@ if not modules then modules = { } end modules ['font-ini'] = {
license = "see context related readme files"
}
+-- basemethods -> can also be in list
+-- presetcontext -> defaults
+-- hashfeatures -> ctx version
+
--[[ldx--
<p>Not much is happening here.</p>
--ldx]]--
-local allocate = utilities.storage.allocate
+local lower = string.lower
+local allocate, mark = utilities.storage.allocate, utilities.storage.mark
local report_defining = logs.reporter("fonts","defining")
-fonts = fonts or { }
+fontloader.totable = fontloader.to_table
+
+fonts = fonts or { } -- already defined in context
local fonts = fonts
-fonts.hashes = { identifiers = allocate() }
-
-fonts.tables = fonts.tables or { }
-fonts.helpers = fonts.helpers or { }
-fonts.tracers = fonts.tracers or { } -- for the moment till we have move to moduledata
-fonts.specifiers = fonts.specifiers or { } -- in format !
+-- some of these might move to where they are used first:
+fonts.hashes = { identifiers = allocate() }
fonts.analyzers = { } -- not needed here
fonts.readers = { }
+fonts.tables = { }
fonts.definers = { methods = { } }
+fonts.specifiers = fonts.specifiers or { } -- in format !
fonts.loggers = { register = function() end }
+fonts.helpers = { }
-fontloader.totable = fontloader.to_table
+fonts.tracers = { } -- for the moment till we have move to moduledata