From d72c2e6c04aad687e32e4829f22732ad519a5290 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Tue, 14 May 2013 19:22:18 +0200 Subject: restore fallback features table --- luaotfload-auxiliary.lua | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/luaotfload-auxiliary.lua b/luaotfload-auxiliary.lua index fd04c80..dde5686 100644 --- a/luaotfload-auxiliary.lua +++ b/luaotfload-auxiliary.lua @@ -76,16 +76,18 @@ local add_fontdata_fallbacks = function (fontdata) metadata = { ascent = metadata.ascent }, } --- for microtype and fontspec - local fake_features = { } -- wrong: table.copy(resources.features) + --local fake_features = { } + local fake_features = table.copy(resources.features) setmetatable(fake_features, { __index = function (tab, idx) - warning("some package (probably fontspec) is outdated") - warning( - "attempt to index " .. - "tfmdata.shared.otfdata.luatex.features (%s)", - idx) - --os.exit(1) - return nil --- empty anyways - end}) + warning("some package (probably fontspec) is outdated") + warning( + "attempt to index " .. + "tfmdata.shared.otfdata.luatex.features (%s)", + idx) + --os.exit(1) + return tab[idx] + end, + }) fontdata.shared.otfdata.luatex = { unicodes = resources.unicodes, features = fake_features, -- cgit v1.2.3