diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-11-06 19:44:39 +0100 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-11-06 19:44:39 +0100 |
commit | c7e28ca197400d21d16fc0e4d65c3053ee60bf1a (patch) | |
tree | 30749b7fbcd09cd1500c65e1611741b3f067b860 | |
parent | 19d57e135e09d9311d0e17c6f7c375a161b8c37f (diff) | |
download | luaotfload-c7e28ca197400d21d16fc0e4d65c3053ee60bf1a.tar.gz |
[db] reload once if lookup failed
-rw-r--r-- | luaotfload-database.lua | 5 |
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 |