diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2010-06-14 14:02:28 +0300 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2010-06-14 16:14:44 +0300 |
commit | c0641b1563ce1b0219724e19c772bbc180e86c2a (patch) | |
tree | 8374a5aee4f561b4531fd5d4d7783fa3f65f5f67 /otfl-font-otd.lua | |
parent | 550be8c7b6ff8a0e50ac9e2f1f31d8b053b13cdf (diff) | |
download | luaotfload-c0641b1563ce1b0219724e19c772bbc180e86c2a.tar.gz |
Sync with ConTeXt beta (beta 2010.06.14)
Fixes several bugs, including math bugs.
Diffstat (limited to 'otfl-font-otd.lua')
-rw-r--r-- | otfl-font-otd.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/otfl-font-otd.lua b/otfl-font-otd.lua index 41e8853..14a9727 100644 --- a/otfl-font-otd.lua +++ b/otfl-font-otd.lua @@ -6,7 +6,7 @@ if not modules then modules = { } end modules ['font-otd'] = { license = "see context related readme files" } -local trace_dynamics = false trackers.register("otf.dynamics", function(v) trace_dynamics = v end) +local trace_dynamics = false trackers.register("otf.dynamics", function(v) trace_dynamics = v end) fonts = fonts or { } fonts.otf = fonts.otf or { } @@ -60,9 +60,10 @@ function otf.set_dynamics(font,dynamics,attribute) tfmdata.script = script tfmdata.shared.features = { } -- end of save - dsla = otf.set_features(tfmdata,fonts.define.check(features,otf.features.default)) + local set = fonts.define.check(features,otf.features.default) + dsla = otf.set_features(tfmdata,set) if trace_dynamics then - logs.report("otf define","setting dynamics %s: attribute %s, script %s, language %s",context_numbers[attribute],attribute,script,language) + logs.report("otf define","setting dynamics %s: attribute %s, script %s, language %s, set: %s",context_numbers[attribute],attribute,script,language,table.sequenced(set)) end -- we need to restore some values tfmdata.script = saved.script |