From 749917ae9796808d937c38375ebdb3fbfb0fcc1c Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Wed, 7 Aug 2013 12:26:22 +0200 Subject: [db] treat empty style in pfb as regular --- luaotfload-database.lua | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/luaotfload-database.lua b/luaotfload-database.lua index 5cbedd4..11cc97d 100644 --- a/luaotfload-database.lua +++ b/luaotfload-database.lua @@ -1280,7 +1280,7 @@ t1_fullinfo = function (filename, _subfont, texmf, basename) end end - if not style then + if not style or style == "" then style = "regular" --- else italic end @@ -2273,18 +2273,13 @@ update_names = function (fontnames, force, dry_run) if success then logs.names_report ("info", 2, "cache", "Lookup cache emptied") - return true, true + return newfontnames end end end return newfontnames end ---- The lookup cache is an experimental feature of version 2.2; ---- instead of incorporating it into the database it gets its own ---- file. As we update it after every single addition this saves us ---- quite some time. - --- unit -> bool save_lookups = function ( ) local lookups = names.lookups -- cgit v1.2.3