summaryrefslogtreecommitdiff
path: root/luaotfload-features.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-06 10:41:24 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-06 10:41:24 +0200
commit241b75b723615faf6be374bfe32506211a01307e (patch)
tree1848b2c9188901eda3794b8af15db53333403f0b /luaotfload-features.lua
parent15ff8e6e3b942aa9df98ea1df572eaee6d9f292b (diff)
downloadluaotfload-241b75b723615faf6be374bfe32506211a01307e.tar.gz
fix unsupported style modifiers
Diffstat (limited to 'luaotfload-features.lua')
-rw-r--r--luaotfload-features.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/luaotfload-features.lua b/luaotfload-features.lua
index 941373d..cac6598 100644
--- a/luaotfload-features.lua
+++ b/luaotfload-features.lua
@@ -352,13 +352,14 @@ local handle_slashed = function (modifiers)
local mod = modifiers[i]
if type(mod) == "table" and mod[1] == "optsize" then --> optical size
optsize = tonumber(mod[2])
- elseif supported[mod] then
- style = supported[mod]
- elseif stylename == false then
+ elseif mod == false then
+ --- ignore
report("log", 0,
"load", "unsupported font option: %s", v)
- elseif not stringis_empty(v) then
- style = stringgsub(v, "[^%a%d]", "")
+ elseif supported[mod] then
+ style = supported[mod]
+ elseif not stringis_empty(mod) then
+ style = stringgsub(mod, "[^%a%d]", "")
end
end
return style, optsize