diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-12-12 14:10:47 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-12-12 14:10:47 +0100 |
commit | 989909187ebdac48c8cbc65a99840ed58d3f4f46 (patch) | |
tree | b02e8c6f90996f218dd97f8dd2c41e8b6d4a000c /tex/context/base/mkiv/font-syn.lua | |
parent | e75317d1924dd10388f154df7412a0ab201e455e (diff) | |
download | context-989909187ebdac48c8cbc65a99840ed58d3f4f46.tar.gz |
2019-12-12 13:14:00
Diffstat (limited to 'tex/context/base/mkiv/font-syn.lua')
-rw-r--r-- | tex/context/base/mkiv/font-syn.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tex/context/base/mkiv/font-syn.lua b/tex/context/base/mkiv/font-syn.lua index a68276504..1d5e18032 100644 --- a/tex/context/base/mkiv/font-syn.lua +++ b/tex/context/base/mkiv/font-syn.lua @@ -26,6 +26,7 @@ local formatters, topattern = string.formatters, string.topattern local round = math.round local P, R, S, C, Cc, Ct, Cs = lpeg.P, lpeg.R, lpeg.S, lpeg.C, lpeg.Cc, lpeg.Ct, lpeg.Cs local lpegmatch, lpegpatterns = lpeg.match, lpeg.patterns +local isfile, modificationtime = lfs.isfile, lfs.modification local allocate = utilities.storage.allocate local sparse = utilities.storage.sparse @@ -465,11 +466,11 @@ function names.getpaths(trace) if name == "" then -- after all, fontconfig is a unix thing name = filejoin("/etc",confname) - if not lfs.isfile(name) then + if not isfile(name) then name = "" -- force quit end end - if name ~= "" and lfs.isfile(name) then + if name ~= "" and isfile(name) then if trace_names then report_names("%s fontconfig file %a","loading",name) end @@ -482,7 +483,7 @@ function names.getpaths(trace) incname = filejoin(path,incname) end end - if lfs.isfile(incname) then + if isfile(incname) then if trace_names then report_names("%s fontconfig file %a","merging included",incname) end @@ -1096,7 +1097,7 @@ local function analyzefiles(olddata) end -- needs checking with ttc / ttx : date not updated ? local result = nil - local modification = lfs.attributes(completename,"modification") + local modification = modificationtime(completename) if olddata and modification and modification > 0 then local oldindex = oldindices[storedname] -- index into specifications if oldindex then |