diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-27 22:38:01 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-27 22:38:01 +0200 |
commit | e263928dfb028952384103d1edc98cea467d4555 (patch) | |
tree | 2e676d0a537cd007287aadebb8611b89d5058a0d | |
parent | c7d9945cbece75331c9342ce0a8eaa9c37a0a06b (diff) | |
download | luaotfload-e263928dfb028952384103d1edc98cea467d4555.tar.gz |
log duplicate fonts
-rw-r--r-- | luaotfload-database.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua index e7d4bf9..65f2bf7 100644 --- a/luaotfload-database.lua +++ b/luaotfload-database.lua @@ -1489,6 +1489,18 @@ local gen_fast_lookups = function (fontnames) --- this will overwrite existing entries for i=1, #lst do local idx, base, bare, intexmf, full = unpack(lst[i]) + + local known = filenames.base[base] or filenames.bare[bare] + if known then --- known + report("both", 1, "db", + "font file ā%sā already indexed (%d)", + base, idx) + report("both", 2, "db", "> old location: %s", + (filenames.full[known] or "texmf")) + report("both", 2, "db", "> new location: %s", + (intexmf and "texmf" or full)) + end + filenames.bare[bare] = idx filenames.base[base] = idx if intexmf == true then |