summaryrefslogtreecommitdiff
path: root/src/luaotfload-features.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-04-17 12:45:14 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2016-04-17 12:45:14 +0200
commitc8734018b81eb2120372493a3767617eeaf0299c (patch)
tree987d7791ae6f39bcf371c72f87d6e8cf759f0c75 /src/luaotfload-features.lua
parentfc973a6dde1a78a59e50bc3850dfd0d06e7b2a03 (diff)
parent97ec9e582e5be33001c136a9c69b5eebee4fdb2a (diff)
downloadluaotfload-c8734018b81eb2120372493a3767617eeaf0299c.tar.gz
Merge pull request #330 from phi-gamma/master
fontloader update
Diffstat (limited to 'src/luaotfload-features.lua')
-rw-r--r--src/luaotfload-features.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/luaotfload-features.lua b/src/luaotfload-features.lua
index 4bcfbc3..250fbc8 100644
--- a/src/luaotfload-features.lua
+++ b/src/luaotfload-features.lua
@@ -31,13 +31,14 @@ local definers = fonts.definers
local handlers = fonts.handlers
local fontidentifiers = fonts.hashes and fonts.hashes.identifiers
-local as_script, normalize
+local config = config or { luaotfload = { run = { } } }
-if handlers then
+local as_script = true
+local normalize = function () end
+
+if config.luaotfload.run.live == true then
normalize = handlers.otf.features.normalize
-else
- normalize = function () end
- as_script = true
+ as_script = false
end