From 38b560d1ceb4d3a30dbdf7c7d8b1d416b244575e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 25 Jun 2023 22:26:08 +0000 Subject: luafindfont (26jun23) git-svn-id: svn://tug.org/texlive/trunk@67468 c570f23f-e606-0410-a88d-b1316a301751 --- .../texlive/linked_scripts/luafindfont/luafindfont.lua | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Build/source') diff --git a/Build/source/texk/texlive/linked_scripts/luafindfont/luafindfont.lua b/Build/source/texk/texlive/linked_scripts/luafindfont/luafindfont.lua index 54a507c452d..a1d554b5aee 100755 --- a/Build/source/texk/texlive/linked_scripts/luafindfont/luafindfont.lua +++ b/Build/source/texk/texlive/linked_scripts/luafindfont/luafindfont.lua @@ -1,6 +1,6 @@ #!/usr/bin/env texlua -- --- $Id: luafindfont.lua 734 2023-06-21 10:04:46Z herbert $ +-- $Id: luafindfont.lua 735 2023-06-22 19:12:29Z herbert $ ----------------------------------------------------------------------- -- FILE: luafindfont.lua -- DESCRIPTION: search for fonts in the database @@ -8,7 +8,7 @@ -- AUTHOR: Herbert Voß (C) 2023-06-21 ----------------------------------------------------------------------- luafindfont = luafindfont or { } - local version = 0.12 + local version = 0.13 luafindfont.version = version --[[ @@ -324,7 +324,9 @@ table.sort(fontDataMap, return false else return string.lower(a["basename"]) < string.lower(b["basename"]) - end end) + end +end) + -- strip duplicates local newFontDataMap = {} if #fontDataMap > 0 then @@ -403,7 +405,13 @@ for i, v in ipairs(fontList) do if string.len(exrun:read('*all')) > 0 then kpsewhich = "1" end + else + print("!!! There maybe a problem with font "..v["basename"].." kpsewhich doesn't work") + print(tostring(exrun)) + kpsewhich = "0" + os.exit() end + exrun:close() end if (font_str ~= "*") and not noSymbolicNames then if args_xetex > 0 then -- cgit v1.2.3