diff options
author | Hans Hagen <pragma@wxs.nl> | 2017-09-05 16:23:29 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2017-09-05 16:23:29 +0200 |
commit | 9e7f89f8e06f60cd518f013074cd56599a69fb8f (patch) | |
tree | c225424668f8726db832f91cbf7391450df97dd2 /tex/context/base/mkiv/font-one.lua | |
parent | 2faa09e17f36cccda88b3ce144e5f2d76e092580 (diff) | |
download | context-9e7f89f8e06f60cd518f013074cd56599a69fb8f.tar.gz |
2017-09-05 15:17:00
Diffstat (limited to 'tex/context/base/mkiv/font-one.lua')
-rw-r--r-- | tex/context/base/mkiv/font-one.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/font-one.lua b/tex/context/base/mkiv/font-one.lua index 63ed610ed..1b5bebb82 100644 --- a/tex/context/base/mkiv/font-one.lua +++ b/tex/context/base/mkiv/font-one.lua @@ -28,6 +28,7 @@ local abs = math.abs local bxor, rshift = bit32.bxor, bit32.rshift local P, S, R, Cmt, C, Ct, Cs, Carg = lpeg.P, lpeg.S, lpeg.R, lpeg.Cmt, lpeg.C, lpeg.Ct, lpeg.Cs, lpeg.Carg local lpegmatch, patterns = lpeg.match, lpeg.patterns +local sortedhash = table.sortedhash local trace_features = false trackers.register("afm.features", function(v) trace_features = v end) local trace_indexing = false trackers.register("afm.indexing", function(v) trace_indexing = v end) @@ -60,7 +61,7 @@ local registerafmfeature = afmfeatures.register local afmenhancers = constructors.enhancers.afm local registerafmenhancer = afmenhancers.register -afm.version = 1.512 -- incrementing this number one up will force a re-cache +afm.version = 1.513 -- incrementing this number one up will force a re-cache afm.cache = containers.define("fonts", "one", afm.version, true) afm.autoprefixed = true -- this will become false some day (catches texnansi-blabla.*) @@ -143,7 +144,7 @@ local function enhance_unify_names(data, filename) local names = { } local private = data.private or privateoffset local descriptions = data.descriptions - for name, blob in next, data.characters do + for name, blob in sortedhash(data.characters) do -- sorting is nicer for privates local code = unicodevector[name] -- or characters.name_to_unicode[name] if not code then code = lpegmatch(uparser,name) |