diff options
author | Karl Berry <karl@freefriends.org> | 2020-03-05 00:48:46 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-03-05 00:48:46 +0000 |
commit | f210bce174e1f2f05305ab03e88e120a1cbfc4da (patch) | |
tree | 5c4e2ad096b5c745e859516ac3196fa0864292d5 /Master/texmf-dist/tex/context/base/mkiv/font-syn.lua | |
parent | 35fd641a3546acc0c62e0aa7f134888e36da30d4 (diff) |
context (from cont-tmf.zip of Feb 17 16:00, size 116339406)
git-svn-id: svn://tug.org/texlive/trunk@54086 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/font-syn.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/font-syn.lua | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/font-syn.lua b/Master/texmf-dist/tex/context/base/mkiv/font-syn.lua index 18c25fbfd97..1d5e1803243 100644 --- a/Master/texmf-dist/tex/context/base/mkiv/font-syn.lua +++ b/Master/texmf-dist/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 @@ -46,9 +47,6 @@ local findfile = resolvers.findfile local cleanpath = resolvers.cleanpath local resolveprefix = resolvers.resolve ------ fontloader = fontloader -- still needed for pfb (now) ------ get_font_info = fontloader.info - local settings_to_hash = utilities.parsers.settings_to_hash_tolerant local trace_names = false trackers.register("fonts.names", function(v) trace_names = v end) @@ -468,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 @@ -485,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 @@ -1099,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 |