From 7c0629c2c2748e3ba32d0fc92f6a425629f1c4b9 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Wed, 13 Nov 2013 00:43:33 +0100 Subject: [db] prefer split style with Type1 fonts --- luaotfload-database.lua | 5 +++-- 1 file 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, -- cgit v1.2.3