[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Primitive variable font instance support (8e8375c)

Marcel Fabian Krüger tex at 2krueger.de
Wed Aug 26 13:54:58 CEST 2020


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/8e8375c73d64978c805a2221aafda8de1a621fac

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

commit 8e8375c73d64978c805a2221aafda8de1a621fac
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Wed Aug 26 13:54:58 2020 +0200

    Primitive variable font instance support


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

8e8375c73d64978c805a2221aafda8de1a621fac
 src/luaotfload-features.lua | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/luaotfload-features.lua b/src/luaotfload-features.lua
index d93e194..e224dfc 100644
--- a/src/luaotfload-features.lua
+++ b/src/luaotfload-features.lua
@@ -429,6 +429,13 @@ local function handle_request (specification)
     --- investigated it any further (luatex-fonts-ext), so it will
     --- just stay here.
     features.normal = normalize (request.features)
+    if features.normal.instance then
+        if features.normal.axis then
+            report("term and log", 0, "features", "instance and axis provided, instance will be ignored")
+        else
+            specification.instance = features.normal.instance
+        end
+    end
     specification.sub = request.sub or specification.sub or false
 
     local forced_mode = request.features and request.features.mode





More information about the latex3-commits mailing list.