[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Rebuild cache if looked up file doesn't exists (bd1358e)

Marcel Fabian Krüger tex at 2krueger.de
Thu May 14 13:32:07 CEST 2020


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/bd1358ef3bbad4b01179356fc10849252cb7617a

>---------------------------------------------------------------

commit bd1358ef3bbad4b01179356fc10849252cb7617a
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Thu May 14 13:32:07 2020 +0200

    Rebuild cache if looked up file doesn't exists


>---------------------------------------------------------------

bd1358ef3bbad4b01179356fc10849252cb7617a
 src/luaotfload-database.lua | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua
index 9d03cb3..062ce56 100644
--- a/src/luaotfload-database.lua
+++ b/src/luaotfload-database.lua
@@ -731,6 +731,10 @@ local type1_metrics = { "tfm", "ofm", }
 lookup_font_file = function (filename)
     local found = lookup_filename (filename)
 
+    if found and not lfsisfile(found) then
+        found = nil
+    end
+
     if not found then
         local type = file.suffix(filename)
         if type ~= "" then





More information about the latex3-commits mailing list.