From a2ea49c4ead73006bfe3012d08eb1cc2860df347 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sat, 16 Apr 2016 00:35:13 +0200 Subject: [features] rely on config to detect runtime mode --- src/luaotfload-features.lua | 13 +++++++------ 1 file 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 -- cgit v1.2.3