diff options
author | Marius <mariausol@gmail.com> | 2011-07-14 13:40:13 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2011-07-14 13:40:13 +0300 |
commit | 06c7a7fdaac34512cdc3ff250dec5b1a7ab3052a (patch) | |
tree | aabadf8b346592b5c67f69c799c929b9c04720c5 /tex/context/base/math-vfu.lua | |
parent | 3dd416f677074c27a248e3433695a6fe8c13ef69 (diff) | |
download | context-06c7a7fdaac34512cdc3ff250dec5b1a7ab3052a.tar.gz |
beta 2011.07.14 12:19
Diffstat (limited to 'tex/context/base/math-vfu.lua')
-rw-r--r-- | tex/context/base/math-vfu.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tex/context/base/math-vfu.lua b/tex/context/base/math-vfu.lua index e78a6f895..e07ded43e 100644 --- a/tex/context/base/math-vfu.lua +++ b/tex/context/base/math-vfu.lua @@ -20,8 +20,10 @@ local format = string.format local fonts, nodes, mathematics = fonts, nodes, mathematics -local trace_virtual = false trackers.register("math.virtual", function(v) trace_virtual = v end) -local trace_timings = false trackers.register("math.timings", function(v) trace_timings = v end) +local trace_virtual = false trackers.register("math.virtual", function(v) trace_virtual = v end) +local trace_timings = false trackers.register("math.timings", function(v) trace_timings = v end) + +local add_optional = false directives.register("math.virtual.optional",function(v) add_optional = v end) local report_virtual = logs.reporter("fonts","virtual math") @@ -33,8 +35,6 @@ fonts.encodings.math = mathencodings -- better is then: fonts.encodings.vecto local vfmath = allocate() fonts.handlers.vf.math = vfmath -vfmath.optional = false - local shared = { } --~ local push, pop, back = { "push" }, { "pop" }, { "slot", 1, 0x2215 } @@ -403,7 +403,7 @@ function vfmath.define(specification,set,goodies) for s=1,#set do local ss = set[s] local ssname = ss.name - if ss.optional and vfmath.optional then + if add_optional and ss.optional then if trace_virtual then report_virtual("loading font %s subfont %s with name %s at %s is skipped",name,s,ssname,size) end @@ -529,7 +529,7 @@ function vfmath.define(specification,set,goodies) local ss, fs = okset[s], loaded[s] if not fs then -- skip, error - elseif ss.optional and vfmath.optional then + elseif add_optional and ss.optional then -- skip, redundant else local newparameters = fs.parameters |