diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-21 11:30:29 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-21 11:30:29 +0200 |
commit | ae2b1986d0c8a62fd4015499b02bdd1d5da9f99d (patch) | |
tree | f6cd479d68abde48e203a082d2afab2b89792b43 | |
parent | e326f02d3f1db23d7f8dbbef328839666e9957ff (diff) | |
download | luaotfload-ae2b1986d0c8a62fd4015499b02bdd1d5da9f99d.tar.gz |
fix inconsistency in fontname lookup
-rw-r--r-- | luaotfload-database.lua | 6 |
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 |