diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2014-01-03 20:03:08 +0100 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2014-01-03 20:03:08 +0100 |
commit | 84c2015a58d019b87532111cd0bb5f7d4d1ccb8a (patch) | |
tree | bf7b03fba0b946928c0766d86c0a554286d5b1c5 | |
parent | 5b26498993e9e0e9ba4759ceb3976b17f42d1413 (diff) | |
download | luaotfload-84c2015a58d019b87532111cd0bb5f7d4d1ccb8a.tar.gz |
[db] use (sanitized) names.fullname field when resolving fonts by name
-rw-r--r-- | luaotfload-database.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua index 9d7d912..7e5f8cb 100644 --- a/luaotfload-database.lua +++ b/luaotfload-database.lua @@ -1070,9 +1070,10 @@ local resolve_fontname = function (specification, name, style) local face = mappings [i] local prefmodifiers = face.prefmodifiers local subfamily = face.subfamily - if face.fontname == name - or face.fullname == name - or face.psname == name + if face.fontname == name + or face.splainname == name + or face.fullname == name + or face.psname == name then return face.basename, face.subfont elseif face.familyname == name then @@ -1608,6 +1609,7 @@ t1_fullinfo = function (filename, _subfont, location, basename, format) fontname = sanitized.fontname, familyname = sanitized.familyname, plainname = fullname, + splainname = sanitized.fullname, psname = sanitized.fontname, version = metadata.version, size = false, @@ -2775,6 +2777,7 @@ local pull_values = function (entry) entry.psname = english.psname entry.fontname = info.fontname entry.fullname = english.fullname or info.fullname + entry.splainname = metadata.fullname entry.prefmodifiers = english.prefmodifiers local metafamily = metadata.familyname local familyname = english.preffamily or english.family |