diff options
author | Hans Hagen <pragma@wxs.nl> | 2013-05-14 19:42:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2013-05-14 19:42:00 +0200 |
commit | 81b3c2d30df15a08e4646d81c1072e528fd6fe3c (patch) | |
tree | 0f3884b742963edd8e2cf193cbffa194d611af61 /tex/context/base/font-syn.lua | |
parent | f01d9e142c52d21bdb375aaeb31988dfbd7123f0 (diff) | |
download | context-81b3c2d30df15a08e4646d81c1072e528fd6fe3c.tar.gz |
beta 2013.05.14 19:42
Diffstat (limited to 'tex/context/base/font-syn.lua')
-rw-r--r-- | tex/context/base/font-syn.lua | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tex/context/base/font-syn.lua b/tex/context/base/font-syn.lua index 81e27afd6..27176dade 100644 --- a/tex/context/base/font-syn.lua +++ b/tex/context/base/font-syn.lua @@ -28,6 +28,7 @@ local nameonly = file.nameonly local pathpart = file.pathpart local filejoin = file.join local is_qualified_path = file.is_qualified_path +local exists = io.exists local findfile = resolvers.findfile local cleanpath = resolvers.cleanpath @@ -719,17 +720,24 @@ local function analyzefiles(olddata) local oldindices = olddata and olddata.indices or { } local oldspecifications = olddata and olddata.specifications or { } local oldrejected = olddata and olddata.rejected or { } + local treatmentdata = fonts.treatments.data local function identify(completename,name,suffix,storedname) local pathpart, basepart = splitbase(completename) nofread = nofread + 1 - if done[name] then + local treatment = treatmentdata[completename] or treatmentdata[basepart] + if treatment and treatment.ignored then + if trace_names then + report_names("%s font %a is ignored, reason %a",suffix,completename,treatment.comment or "unknown") + end + nofskipped = nofskipped + 1 + elseif done[name] then -- already done (avoid otf afm clash) if trace_names then report_names("%s font %a already done",suffix,completename) end nofduplicates = nofduplicates + 1 nofskipped = nofskipped + 1 - elseif not io.exists(completename) then + elseif not exists(completename) then -- weird error if trace_names then report_names("%s font %a does not really exist",suffix,completename) |