diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2016-04-16 00:35:13 +0200 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2016-04-16 00:35:13 +0200 |
commit | a2ea49c4ead73006bfe3012d08eb1cc2860df347 (patch) | |
tree | 7333b74fd1911a386c116cdbfd91dc73773a46aa /src | |
parent | 6c5d9617441d47fc375749880b3faaff29e8c5d0 (diff) | |
download | luaotfload-a2ea49c4ead73006bfe3012d08eb1cc2860df347.tar.gz |
[features] rely on config to detect runtime mode
Diffstat (limited to 'src')
-rw-r--r-- | src/luaotfload-features.lua | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/luaotfload-features.lua b/src/luaotfload-features.lua index d7a685d..250fbc8 100644 --- a/src/luaotfload-features.lua +++ b/src/luaotfload-features.lua @@ -1,5 +1,5 @@ if not modules then modules = { } end modules ["features"] = { - version = "2.7", + version = "2.6", comment = "companion to luaotfload-main.lua", author = "Hans Hagen, Khaled Hosny, Elie Roux, Philipp Gesang", copyright = "PRAGMA ADE / ConTeXt Development Team", @@ -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 |