summaryrefslogtreecommitdiff
path: root/luaotfload-auxiliary.lua
diff options
context:
space:
mode:
Diffstat (limited to 'luaotfload-auxiliary.lua')
-rw-r--r--luaotfload-auxiliary.lua20
1 files 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,