summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-04-25 04:25:53 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-04-25 04:25:53 +0200
commitc22e7fa7a129c4f3496753657d36b651ba6d1b39 (patch)
treed71c79b26817bda41e0670d49c3605c8b20c072f
parent743c725a3c4e515cdb591a04dc5396c5e9e1de42 (diff)
downloadluaotfload-c22e7fa7a129c4f3496753657d36b651ba6d1b39.tar.gz
accommodate weird subfamily type of Libertine Mono
-rw-r--r--luaotfload-database.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua
index d731038..666172a 100644
--- a/luaotfload-database.lua
+++ b/luaotfload-database.lua
@@ -398,6 +398,7 @@ resolve = function (_,_,specification) -- the 1st two parameters are used by Con
maxsize = optsize[2] and optsize[2] / 10 or dsnsize
minsize = optsize[3] and optsize[3] / 10 or dsnsize
end
+
if name == family then
if subfamily == style then
if optsize then
@@ -413,7 +414,8 @@ resolve = function (_,_,specification) -- the 1st two parameters are used by Con
break
end
elseif synonym_set[style] and
- synonym_set[style][subfamily] then
+ synonym_set[style][subfamily]
+ then
if optsize then
if dsnsize == size
or (size > minsize and size <= maxsize) then
@@ -427,9 +429,11 @@ resolve = function (_,_,specification) -- the 1st two parameters are used by Con
break
end
elseif subfamily == "regular" or
+ subfamily == "mono" or --> Libertine Mono O
synonym_set.regular[subfamily] then
found.fallback = face
end
+
else
if name == fullname
or name == pfullname