summaryrefslogtreecommitdiff
path: root/luaotfload-database.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-08-07 12:26:22 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-08-07 12:26:22 +0200
commit749917ae9796808d937c38375ebdb3fbfb0fcc1c (patch)
tree36ca2231814c48e0f2b954ca12e7ce779a552aa6 /luaotfload-database.lua
parentd6328e783739d68a132a33e0a95a2f7f90494f37 (diff)
downloadluaotfload-749917ae9796808d937c38375ebdb3fbfb0fcc1c.tar.gz
[db] treat empty style in pfb as regular
Diffstat (limited to 'luaotfload-database.lua')
-rw-r--r--luaotfload-database.lua9
1 files 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