From acb76cca1c0bdedc811d7eeed1b2392b692cdf50 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Tue, 28 May 2013 22:26:14 +0200 Subject: have file locator return the filename when known fonts are specified without extension --- luaotfload-database.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'luaotfload-database.lua') diff --git a/luaotfload-database.lua b/luaotfload-database.lua index 65f2bf7..aba1921 100644 --- a/luaotfload-database.lua +++ b/luaotfload-database.lua @@ -399,10 +399,9 @@ crude_file_lookup = function (filename) if found then found = filenames.full[found] if found == nil then - return dummy_findfile(filename) - else - return found + found = dummy_findfile(filename) end + return found or filename end for i=1, #type1_formats do local format = type1_formats[i] -- cgit v1.2.3