From b5e7eb047db872bbaf068384c4e3cd866ad84077 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Tue, 29 Jul 2014 00:30:00 +0200 Subject: beta 2014.07.29 00:30 --- tex/context/base/font-ott.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tex/context/base/font-ott.lua') 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 -- cgit v1.2.3