diff options
author | Karl Berry <karl@freefriends.org> | 2022-02-09 20:59:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-02-09 20:59:18 +0000 |
commit | 12711ed06b70a69b2cc517154c0c4b04c93ba15b (patch) | |
tree | f5aa4b612cdcb7ab044b502b774934350264f97e /Master/texmf-dist/scripts | |
parent | 9c9ae10322d799b792c7a69cb4c19a4efa2a81a5 (diff) |
luafindfont (9feb22)
git-svn-id: svn://tug.org/texlive/trunk@61959 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts')
-rwxr-xr-x | Master/texmf-dist/scripts/luafindfont/luafindfont.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Master/texmf-dist/scripts/luafindfont/luafindfont.lua b/Master/texmf-dist/scripts/luafindfont/luafindfont.lua index fc7a6b6577e..2008194bb7f 100755 --- a/Master/texmf-dist/scripts/luafindfont/luafindfont.lua +++ b/Master/texmf-dist/scripts/luafindfont/luafindfont.lua @@ -1,5 +1,4 @@ #!/usr/bin/env texlua --- % $Id: luafindfont.lua 330 2021-11-28 13:47:56Z herbert $ ----------------------------------------------------------------------- -- FILE: luafindfont.lua @@ -8,7 +7,7 @@ -- AUTHOR: Herbert Voß (C) 2021-11-27 ----------------------------------------------------------------------- luafindfont = luafindfont or { } - local version = 0.05 + local version = 0.06 luafindfont.version = version --[[ @@ -55,7 +54,7 @@ local i = 1 while i <= #arg do if arg[i] == "-h" or arg[i] == "--help" then print("Version "..version..", Copyright 2021 by Herbert Voß") - print([[Syntax: luafintfont [options] <font> + print([[Syntax: luafindfont [options] <font> By default the Lua program 'luafindfont' creates a list of the fonts which have in its names the given string. @@ -123,7 +122,7 @@ if #font_str == 1 then font_str[2] = "" end local luaVersion = _VERSION print("We are using "..luaVersion) -if #font_str > 1 then +if font_str[2] ~= "" then print('Looking for font \"'..font_str[1]..' & '..font_str[2]..'\"') else print('Looking for font \"'..font_str[1]..'\"') |