[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Apply variable font features in luaotfload-tool (6d74670)

Marcel Fabian Krüger tex at 2krueger.de
Sat Sep 19 09:57:32 CEST 2020


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/6d746704e716941f9cf915346eb78d40a5759f2a

>---------------------------------------------------------------

commit 6d746704e716941f9cf915346eb78d40a5759f2a
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sat Sep 19 09:57:32 2020 +0200

    Apply variable font features in luaotfload-tool


>---------------------------------------------------------------

6d746704e716941f9cf915346eb78d40a5759f2a
 src/luaotfload-features.lua | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/luaotfload-features.lua b/src/luaotfload-features.lua
index aaf11f2..0ab91a2 100644
--- a/src/luaotfload-features.lua
+++ b/src/luaotfload-features.lua
@@ -40,12 +40,18 @@ local otf               = handlers.otf
 
 local config            = config or { luaotfload = { run = { } } }
 
-local as_script         = true
-local normalize         = function () end
-
-if config.luaotfload.run.live ~= false then
+local as_script         = config.luaotfload.run.live
+local normalize
+
+if as_script then
+    function normalize(features)
+        return {
+            axis = features and features.axis,
+            instance = features and features.instance,
+        }
+    end
+else
     normalize = otf.features.normalize
-    as_script = false
 end
 
 --[[HH (font-xtx) --





More information about the latex3-commits mailing list.