summaryrefslogtreecommitdiff
path: root/luaotfload-database.lua
diff options
context:
space:
mode:
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