Skip to content

Commit 6d74670

Browse files
committed
Apply variable font features in luaotfload-tool
1 parent 0f606d6 commit 6d74670

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/luaotfload-features.lua

+11-5
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,18 @@ local otf = handlers.otf
4040

4141
local config = config or { luaotfload = { run = { } } }
4242

43-
local as_script = true
44-
local normalize = function () end
45-
46-
if config.luaotfload.run.live ~= false then
43+
local as_script = config.luaotfload.run.live
44+
local normalize
45+
46+
if as_script then
47+
function normalize(features)
48+
return {
49+
axis = features and features.axis,
50+
instance = features and features.instance,
51+
}
52+
end
53+
else
4754
normalize = otf.features.normalize
48-
as_script = false
4955
end
5056

5157
--[[HH (font-xtx) --

0 commit comments

Comments
 (0)