diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-11-13 00:43:33 +0100 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-11-13 00:43:33 +0100 |
commit | 7c0629c2c2748e3ba32d0fc92f6a425629f1c4b9 (patch) | |
tree | e2566f225d2be53a12890fc9ce337e457dd64541 | |
parent | 32a5a40a2f99bf82436bfec8926fe7bfeaa1194d (diff) | |
download | luaotfload-7c0629c2c2748e3ba32d0fc92f6a425629f1c4b9.tar.gz |
[db] prefer split style with Type1 fonts
-rw-r--r-- | luaotfload-database.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua index 638f1c3..c15cd60 100644 --- a/luaotfload-database.lua +++ b/luaotfload-database.lua @@ -1543,6 +1543,7 @@ t1_fullinfo = function (filename, _subfont, location, basename, format) local familyname = metadata.familyname local italicangle = metadata.italicangle local weight = metadata.weight --- string identifier + local splitstyle = split_fontname (fontname) sanitized = sanitize_fontnames ({ fontname = fontname, @@ -1567,8 +1568,8 @@ t1_fullinfo = function (filename, _subfont, location, basename, format) psname = sanitized.fontname, version = metadata.version, size = false, - splitstyle = split_fontname (fontname), - fontstyle_name = sanitized.subfamily, + splitstyle = splitstyle, + fontstyle_name = splitstyle or sanitized.subfamily, weight = { metadata.pfminfo.weight, sanitized.subfamily }, italicangle = italicangle, |