summaryrefslogtreecommitdiff
path: root/luaotfload-database.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-06-25 10:50:13 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-06-25 10:50:13 +0200
commitffdbaf60da4815f80f6254a35ec22b7da55fc44c (patch)
tree5742502491a1eceed6098a208524739b4a2be499 /luaotfload-database.lua
parent80ea10e6238b2da996f1f0247257e16373ce5972 (diff)
downloadluaotfload-ffdbaf60da4815f80f6254a35ec22b7da55fc44c.tar.gz
fix font file verification (thanks, Kim!)
the cached lookup did not load the database when verifying the presence of hashed files. addresses: https://github.com/lualatex/luaotfload/issues/100
Diffstat (limited to 'luaotfload-database.lua')
-rw-r--r--luaotfload-database.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua
index 4554711..12bceb5 100644
--- a/luaotfload-database.lua
+++ b/luaotfload-database.lua
@@ -493,6 +493,7 @@ the texmf or filesystem.
--doc]]--
local verify_font_file = function (basename)
+ if not names.data then names.data = load_names() end
local filenames = names.data.filenames
local idx = filenames.base[basename]
if not idx then