diff options
author | Karl Berry <karl@freefriends.org> | 2023-06-25 22:26:08 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-06-25 22:26:08 +0000 |
commit | 38b560d1ceb4d3a30dbdf7c7d8b1d416b244575e (patch) | |
tree | d778243469bdcca922f1ce9258c10ccf7f50a3b8 | |
parent | 04c71cf560b50287689d9beff1522524d331cc4b (diff) |
luafindfont (26jun23)
git-svn-id: svn://tug.org/texlive/trunk@67468 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Build/source/texk/texlive/linked_scripts/luafindfont/luafindfont.lua | 14 | ||||
-rw-r--r-- | Master/texmf-dist/doc/support/luafindfont/CHANGELOG | 1 | ||||
-rw-r--r-- | Master/texmf-dist/doc/support/luafindfont/luafindfont-doc.pdf | bin | 98679 -> 98571 bytes | |||
-rwxr-xr-x | Master/texmf-dist/scripts/luafindfont/luafindfont.lua | 14 |
4 files changed, 23 insertions, 6 deletions
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 diff --git a/Master/texmf-dist/doc/support/luafindfont/CHANGELOG b/Master/texmf-dist/doc/support/luafindfont/CHANGELOG index 0e987a1623c..783f804f294 100644 --- a/Master/texmf-dist/doc/support/luafindfont/CHANGELOG +++ b/Master/texmf-dist/doc/support/luafindfont/CHANGELOG @@ -1,3 +1,4 @@ +0.13 2023-06-23 - add exrun:close() for every kpsewhich test 0.12 2023-06-21 - bugfix for undefined exrun (l. 251) - check for empty font list and given font number - print a message if no fonts for given (partial) name exists diff --git a/Master/texmf-dist/doc/support/luafindfont/luafindfont-doc.pdf b/Master/texmf-dist/doc/support/luafindfont/luafindfont-doc.pdf Binary files differindex 919145bd966..65be6ced105 100644 --- a/Master/texmf-dist/doc/support/luafindfont/luafindfont-doc.pdf +++ b/Master/texmf-dist/doc/support/luafindfont/luafindfont-doc.pdf diff --git a/Master/texmf-dist/scripts/luafindfont/luafindfont.lua b/Master/texmf-dist/scripts/luafindfont/luafindfont.lua index 54a507c452d..a1d554b5aee 100755 --- a/Master/texmf-dist/scripts/luafindfont/luafindfont.lua +++ b/Master/texmf-dist/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 |