summaryrefslogtreecommitdiff
path: root/tex/context/base/font-col.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-03-13 13:40:13 +0200
committerMarius <mariausol@gmail.com>2013-03-13 13:40:13 +0200
commit024da6e6a3d94f3377cedecbdd8658cc78a1bd77 (patch)
treea173da416ef067356650484f06c065f3198299ee /tex/context/base/font-col.lua
parent825550ef9f9519cd3c4dc89ac6d544f9594d5349 (diff)
downloadcontext-024da6e6a3d94f3377cedecbdd8658cc78a1bd77.tar.gz
beta 2013.03.13 12:15
Diffstat (limited to 'tex/context/base/font-col.lua')
-rw-r--r--tex/context/base/font-col.lua20
1 files changed, 10 insertions, 10 deletions
diff --git a/tex/context/base/font-col.lua b/tex/context/base/font-col.lua
index b884c1457..20c99c9b4 100644
--- a/tex/context/base/font-col.lua
+++ b/tex/context/base/font-col.lua
@@ -24,18 +24,18 @@ local trace_collecting = false trackers.register("fonts.collecting", function
local report_fonts = logs.reporter("fonts","collections")
-fonts.collections = fonts.collections or { }
-local collections = fonts.collections
+local collections = fonts.collections or { }
+fonts.collections = collections
-collections.definitions = collections.definitions or { }
-local definitions = collections.definitions
+local definitions = collections.definitions or { }
+collections.definitions = definitions
-collections.vectors = collections.vectors or { }
-local vectors = collections.vectors
+local vectors = collections.vectors or { }
+collections.vectors = vectors
local fontdata = fonts.hashes.identifiers
-
local glyph_code = nodes.nodecodes.glyph
+local currentfont = font.current
local fontpatternhassize = fonts.helpers.fontpatternhassize
@@ -63,7 +63,7 @@ function collections.define(name,font,ranges,details)
-- todo: details -> method=force|conditional rscale=
-- todo: remap=name
local d = definitions[name]
- if d then
+ if not d then
d = { }
definitions[name] = d
end
@@ -95,7 +95,7 @@ end
-- todo: provide a lua variant (like with definefont)
function collections.registermain(name)
- local last = font.current()
+ local last = currentfont()
if trace_collecting then
report_fonts("registering font %a with name %a",last,name)
end
@@ -164,7 +164,7 @@ end
-- if lpegmatch(okay,name) then
function collections.prepare(name)
- current = font.current()
+ current = currentfont()
if vectors[current] then
return
end