diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2014-08-07 22:04:43 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2014-08-07 22:07:44 +0200 |
commit | b62659ff9ede950224ee2412682328b6996c369b (patch) | |
tree | 433f1e3cb4c6e45e8f44726f251c5483c1621fcb /src/luaotfload-features.lua | |
parent | ce16cb6589e9bf6793e1e978a38613ff41429784 (diff) | |
download | luaotfload-b62659ff9ede950224ee2412682328b6996c369b.tar.gz |
[features] apply negated feature
Closing https://github.com/lualatex/luaotfload/issues/243
The behavior was introduced with commit d84ce4e.. when non-boolean
default feature values were introduced as part of the configuration.
Diffstat (limited to 'src/luaotfload-features.lua')
-rw-r--r-- | src/luaotfload-features.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/luaotfload-features.lua b/src/luaotfload-features.lua index 1fb6d7c..f01c45b 100644 --- a/src/luaotfload-features.lua +++ b/src/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,7 +771,7 @@ local set_default_features = function (speclist) end for feat, state in next, requested do - if not speclist[feat] then speclist[feat] = state end + if not speclist[feat] == nil then speclist[feat] = state end end for feat, state in next, default_features.global do @@ -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 |