[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Fix fallback for kpse: lookups (d2c2518)

Marcel Fabian Krüger tex at 2krueger.de
Thu Apr 28 19:27:21 CEST 2022


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

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

commit d2c2518f763e65c370e0789f8b83b559c751aacc
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Thu Apr 28 19:27:21 2022 +0200

    Fix fallback for kpse: lookups


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

d2c2518f763e65c370e0789f8b83b559c751aacc
 src/luaotfload-resolvers.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/luaotfload-resolvers.lua b/src/luaotfload-resolvers.lua
index 8b10568..b8e4854 100644
--- a/src/luaotfload-resolvers.lua
+++ b/src/luaotfload-resolvers.lua
@@ -231,8 +231,8 @@ local function resolve_kpse (specification)
         local resolved = resolvers_findfile(name, suffix)
         if resolved then return resolved end
     end
-    for t, format in next, fonts.formats do --- brute force
-        local resolved = kpsefind_file (name, format)
+    for _, t in ipairs{'otf', 'ttf', 'pfb', 'lua', 'afm'} do --- brute force
+        local resolved = resolvers_findfile (name, t)
         if resolved then return resolved, t end
     end
 end





More information about the latex3-commits mailing list.