diff options
author | Hans Hagen <pragma@wxs.nl> | 2018-09-26 15:15:30 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2018-09-26 15:15:30 +0200 |
commit | d6c24a529d922ac67d2a30595c52b6b9547dce77 (patch) | |
tree | 9143971200bbe13e5b945a295b1c5d9c6ca4f04b /tex/context/base/mkiv/font-ini.lua | |
parent | 28f104e641e84d484a22266d87536ef7d765b223 (diff) | |
download | context-d6c24a529d922ac67d2a30595c52b6b9547dce77.tar.gz |
2018-09-26 14:34:00
Diffstat (limited to 'tex/context/base/mkiv/font-ini.lua')
-rw-r--r-- | tex/context/base/mkiv/font-ini.lua | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/tex/context/base/mkiv/font-ini.lua b/tex/context/base/mkiv/font-ini.lua index 3d5dd27a2..d42652e0e 100644 --- a/tex/context/base/mkiv/font-ini.lua +++ b/tex/context/base/mkiv/font-ini.lua @@ -10,22 +10,33 @@ if not modules then modules = { } end modules ['font-ini'] = { <p>Not much is happening here.</p> --ldx]]-- -local allocate = utilities.storage.allocate +local allocate = utilities.storage.allocate +local sortedhash = table.sortedhash -fonts = fonts or { } -local fonts = fonts +fonts = fonts or { } +local fonts = fonts -fonts.hashes = fonts.hashes or { 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 ! +local identifiers = allocate() -fonts.analyzers = { } -- not needed here -fonts.readers = { } -fonts.definers = { methods = { } } -fonts.loggers = { register = function() end } +fonts.hashes = fonts.hashes or { identifiers = identifiers } +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 ! + +fonts.analyzers = { } -- not needed here +fonts.readers = { } +fonts.definers = { methods = { } } +fonts.loggers = { register = function() end } if context then + + font.originaleach = font.each + + function font.each() + return sortedhash(identifiers) + end + fontloader = nil + end |