summaryrefslogtreecommitdiff
path: root/luaotfload-features.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-04-28 12:59:51 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-04-28 12:59:51 +0200
commita1ab3fe5a146cf741d517be62985b97268de624b (patch)
treea9a3d2494811738be04a88fa3d215f532c84d787 /luaotfload-features.lua
parent4821fad2ff58fa8c4fbee58cbb6fe5353e047613 (diff)
downloadluaotfload-a1ab3fe5a146cf741d517be62985b97268de624b.tar.gz
add fallback for specification name
Diffstat (limited to 'luaotfload-features.lua')
-rw-r--r--luaotfload-features.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/luaotfload-features.lua b/luaotfload-features.lua
index cd639b6..f3d9158 100644
--- a/luaotfload-features.lua
+++ b/luaotfload-features.lua
@@ -401,9 +401,9 @@ local import_values = {
"style", "optsize", "lookup", "sub" --[[‽]], "mode",
}
-local handle_name = function (specification, raw)
+local handle_name = function (specname, raw)
--- FIXME only file: and name: atm
- local name = raw.file or raw.name
+ local name = raw.file or raw.name or specname
local lookup
--- why is this here?
--- TODO should we keep this, check if it applies only to tfm and
@@ -424,7 +424,7 @@ local handle_request = function (specification)
specification.specification)
request.features = set_default_features(request.features)
- local name, lookup = handle_name(specification, request)
+ local name, lookup = handle_name(specification.name, request)
if name then
specification.name = name
specification.lookup = lookup or specification.lookup