summaryrefslogtreecommitdiff
path: root/tex/context/base/font-ott.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2014-07-29 00:30:00 +0200
committerHans Hagen <pragma@wxs.nl>2014-07-29 00:30:00 +0200
commitb5e7eb047db872bbaf068384c4e3cd866ad84077 (patch)
tree4f8e1c0a513abb0bcec51e35299c3da23784ced5 /tex/context/base/font-ott.lua
parente63baf9e8915e379e3883d5885e11b923d038318 (diff)
downloadcontext-b5e7eb047db872bbaf068384c4e3cd866ad84077.tar.gz
beta 2014.07.29 00:30
Diffstat (limited to 'tex/context/base/font-ott.lua')
-rw-r--r--tex/context/base/font-ott.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/tex/context/base/font-ott.lua b/tex/context/base/font-ott.lua
index 1e2309056..348672491 100644
--- a/tex/context/base/font-ott.lua
+++ b/tex/context/base/font-ott.lua
@@ -858,10 +858,13 @@ function otf.features.normalize(features)
if uv then
-- report_checks("feature value %a first seen at %a",value,key)
else
- if type(value) == "string" then
+ uv = tonumber(value) -- before boolean as there we also handle 0/1
+ if uv then
+ -- we're okay
+ elseif type(value) == "string" then
local b = is_boolean(value)
if type(b) == "nil" then
- uv = tonumber(value) or lower(value)
+ uv = lower(value)
else
uv = b
end