diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2016-07-15 07:46:17 +0200 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2016-07-15 07:46:22 +0200 |
commit | cb87e4417ed1380b79f35efe4b044dce40c5d3d3 (patch) | |
tree | 766e33f157c7c7dea9defeaa1a5ca62ba59d008b | |
parent | 6ae6f2dec61a216b584e59b6953f0576f51c3902 (diff) | |
download | luaotfload-cb87e4417ed1380b79f35efe4b044dce40c5d3d3.tar.gz |
[features] correctly unset subfont
Even though it works fine as it was, the loader actually expects “false”
as the value to indicate that no subfont was requested.
-rw-r--r-- | src/luaotfload-features.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/luaotfload-features.lua b/src/luaotfload-features.lua index 786f619..b432022 100644 --- a/src/luaotfload-features.lua +++ b/src/luaotfload-features.lua @@ -1259,6 +1259,8 @@ local handle_request = function (specification) local subfont = tonumber (specification.sub) if subfont and subfont >= 0 then specification.sub = subfont + 1 + else + specification.sub = false end return specification end |