summaryrefslogtreecommitdiff
path: root/luaotfload-database.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-11-06 19:44:39 +0100
committerPhilipp Gesang <phg42.2a@gmail.com>2013-11-06 19:44:39 +0100
commitc7e28ca197400d21d16fc0e4d65c3053ee60bf1a (patch)
tree30749b7fbcd09cd1500c65e1611741b3f067b860 /luaotfload-database.lua
parent19d57e135e09d9311d0e17c6f7c375a161b8c37f (diff)
downloadluaotfload-c7e28ca197400d21d16fc0e4d65c3053ee60bf1a.tar.gz
[db] reload once if lookup failed
Diffstat (limited to 'luaotfload-database.lua')
-rw-r--r--luaotfload-database.lua5
1 files changed, 5 insertions, 0 deletions
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