From 335446c44d46742513adf300e0066c4c4c36f623 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 25 Apr 2013 17:15:20 +0200 Subject: catch more odd subfamily strings --- otfl-font-nms.lua | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua index 1f01693..84cdf6e 100644 --- a/otfl-font-nms.lua +++ b/otfl-font-nms.lua @@ -154,27 +154,23 @@ function names.resolve(specification) elseif subfamily == "regular" or table.contains(synonyms.regular, subfamily) then found.fallback = face - elseif name = fullname then - found[1] = face - break end - else - if name == fullname - or name == pfullname - or name == fontname - or name == psname then - if optsize then - if dsnsize == size - or (size > minsize and size <= maxsize) then - found[1] = face - break - else - found[#found+1] = face - end - else + end + if name == fullname + or name == pfullname + or name == fontname + or name == psname then + if optsize then + if dsnsize == size + or (size > minsize and size <= maxsize) then found[1] = face break + else + found[#found+1] = face end + else + found[1] = face + break end end end -- cgit v1.2.3