summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--otfl-font-nms.lua4
-rw-r--r--otfl-font-otf.lua2
-rw-r--r--otfl-luat-dum.lua2
3 files changed, 4 insertions, 4 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua
index a8b3100..f6d6a6e 100644
--- a/otfl-font-nms.lua
+++ b/otfl-font-nms.lua
@@ -493,8 +493,8 @@ local function scan_texmf_fonts(fontnames, newfontnames)
else
logs.info("Scanning TEXMF and OS fonts...")
end
- local fontdirs = expandpath("$OPENTYPEFONTS"):gsub("^\.", "")
- fontdirs = fontdirs .. expandpath("$TTFONTS"):gsub("^\.", "")
+ local fontdirs = expandpath("$OPENTYPEFONTS"):gsub("^%.", "")
+ fontdirs = fontdirs .. expandpath("$TTFONTS"):gsub("^%.", "")
if not fontdirs:is_empty() then
for _,d in next, splitpath(fontdirs) do
scan_dir(d, fontnames, newfontnames, true)
diff --git a/otfl-font-otf.lua b/otfl-font-otf.lua
index b46bc91..ce54086 100644
--- a/otfl-font-otf.lua
+++ b/otfl-font-otf.lua
@@ -1100,7 +1100,7 @@ otf.enhancers["reorganize kerns"] = function(data,filename)
if type(lookups) ~= "table" then
lookups = { lookups }
end
- local maxfirsts, maxseconds = getn(firsts), getn(seconds)
+ local maxfirsts, maxseconds = #firsts, #seconds
-- here we could convert split into a list of unicodes which is a bit
-- faster but as this is only done when caching it does not save us much
for _, s in next, firsts do
diff --git a/otfl-luat-dum.lua b/otfl-luat-dum.lua
index 2f6627f..13b73b1 100644
--- a/otfl-luat-dum.lua
+++ b/otfl-luat-dum.lua
@@ -62,7 +62,7 @@ local remapper = {
}
function resolvers.find_file(name,kind)
- name = string.gsub(name,"\\","\/")
+ name = string.gsub(name,"\\","/")
kind = string.lower(kind)
return kpse.find_file(name,(kind and kind ~= "" and (remapper[kind] or kind)) or file.extname(name,"tex"))
end