diff options
author | Hans Hagen <pragma@wxs.nl> | 2014-07-29 00:30:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2014-07-29 00:30:00 +0200 |
commit | b5e7eb047db872bbaf068384c4e3cd866ad84077 (patch) | |
tree | 4f8e1c0a513abb0bcec51e35299c3da23784ced5 /tex/context/base/font-ott.lua | |
parent | e63baf9e8915e379e3883d5885e11b923d038318 (diff) | |
download | context-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.lua | 7 |
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 |