summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-21 11:30:29 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-21 11:30:29 +0200
commitae2b1986d0c8a62fd4015499b02bdd1d5da9f99d (patch)
treef6cd479d68abde48e203a082d2afab2b89792b43
parente326f02d3f1db23d7f8dbbef328839666e9957ff (diff)
downloadluaotfload-ae2b1986d0c8a62fd4015499b02bdd1d5da9f99d.tar.gz
fix inconsistency in fontname lookup
-rw-r--r--luaotfload-database.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua
index 0e46874..ee7701d 100644
--- a/luaotfload-database.lua
+++ b/luaotfload-database.lua
@@ -568,9 +568,11 @@ resolve = function (_,_,specification) -- the 1st two parameters are used by Con
subfamily = facenames.subfamily
fullname = facenames.fullname
psname = facenames.psname
+ fontname = facenames.fontname
+ pfullname = facenames.pfullname
end
- fontname = facenames.fontname or sanitize_string(face.fontname)
- pfullname = facenames.pfullname or sanitize_string(face.fullname)
+ fontname = fontname or sanitize_string(face.fontname)
+ pfullname = pfullname or sanitize_string(face.fullname)
local optsize, dsnsize, maxsize, minsize
if #face.size > 0 then