From ae2b1986d0c8a62fd4015499b02bdd1d5da9f99d Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Tue, 21 May 2013 11:30:29 +0200 Subject: fix inconsistency in fontname lookup --- luaotfload-database.lua | 6 ++++-- 1 file 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 -- cgit v1.2.3