summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-04-16 00:35:13 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2016-04-16 00:35:13 +0200
commita2ea49c4ead73006bfe3012d08eb1cc2860df347 (patch)
tree7333b74fd1911a386c116cdbfd91dc73773a46aa
parent6c5d9617441d47fc375749880b3faaff29e8c5d0 (diff)
downloadluaotfload-a2ea49c4ead73006bfe3012d08eb1cc2860df347.tar.gz
[features] rely on config to detect runtime mode
-rw-r--r--src/luaotfload-features.lua13
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