From c7e28ca197400d21d16fc0e4d65c3053ee60bf1a Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Wed, 6 Nov 2013 19:44:39 +0100 Subject: [db] reload once if lookup failed --- luaotfload-database.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/luaotfload-database.lua b/luaotfload-database.lua index d8d4a6f..0833f92 100644 --- a/luaotfload-database.lua +++ b/luaotfload-database.lua @@ -1079,6 +1079,11 @@ resolve_name = function (specification) if not resolved then resolved = specification.name, false end + if not resolved then + if not fonts_reloaded then + return reload_db ("Font not found.", resolve_name, specification) + end + end return resolved, subfont end -- cgit v1.2.3