diff options
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luaotfload/luaotfload-features.lua')
-rw-r--r-- | Master/texmf-dist/tex/luatex/luaotfload/luaotfload-features.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-features.lua b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-features.lua index 1fb6d7c6785..9b895ce47e3 100644 --- a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-features.lua +++ b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-features.lua @@ -723,7 +723,7 @@ local support_incomplete = tabletohash({ --doc]]-- --- (string, string) dict -> (string, string) dict -local set_default_features = function (speclist) +local apply_default_features = function (speclist) local default_features = luaotfload.features speclist = speclist or { } @@ -771,14 +771,14 @@ local set_default_features = function (speclist) end for feat, state in next, requested do - if not speclist[feat] then speclist[feat] = state end + if speclist[feat] == nil then speclist[feat] = state end end for feat, state in next, default_features.global do --- This is primarily intended for setting node --- mode unless “base” is requested, as stated --- in the manual. - if not speclist[feat] then speclist[feat] = state end + if speclist[feat] == nil then speclist[feat] = state end end return speclist end @@ -877,7 +877,7 @@ local handle_request = function (specification) return specification end local lookup, name = select_lookup(request) - request.features = set_default_features(request.features) + request.features = apply_default_features(request.features) if name then specification.name = name |