diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2015-11-22 00:16:06 +0100 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2015-11-22 00:16:06 +0100 |
commit | 39d7f5d2b65d9d21627c73c3436825d39317dced (patch) | |
tree | 197445bbdf448a0ef9975dacc73a81ad0d754556 /src/luaotfload-loaders.lua | |
parent | c6e5c892171b526c0bd283737a6207bf443765e2 (diff) | |
parent | 8e66c317251ad8efcfef34a40ac747435e37ed29 (diff) | |
download | luaotfload-39d7f5d2b65d9d21627c73c3436825d39317dced.tar.gz |
Merge branch 'canonical-master'
Diffstat (limited to 'src/luaotfload-loaders.lua')
-rw-r--r-- | src/luaotfload-loaders.lua | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/luaotfload-loaders.lua b/src/luaotfload-loaders.lua index 38062f6..715aa8a 100644 --- a/src/luaotfload-loaders.lua +++ b/src/luaotfload-loaders.lua @@ -110,12 +110,22 @@ end --doc]]-- +local function reset_callback(name,make_false) + for _,v in pairs(luatexbase.callback_descriptions(name)) + do + luatexbase.remove_from_callback(name,v) + end + if make_false == true then + luatexbase.disable_callback(name) + end +end + local install_callbacks = function () local create_callback = luatexbase.create_callback local dummy_function = function () end create_callback ("luaotfload.patch_font", "simple", dummy_function) create_callback ("luaotfload.patch_font_unsafe", "simple", dummy_function) - luatexbase.reset_callback "define_font" + reset_callback "define_font" local definer = config.luaotfload.run.definer luatexbase.add_to_callback ("define_font", definers[definer or "patch"], |