diff options
Diffstat (limited to 'src/luaotfload-features.lua')
-rw-r--r-- | src/luaotfload-features.lua | 11 |
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 |