From aca3f50f6806f838b6acbaa2f7012fc6b12d5080 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 18 May 2014 20:57:45 +0200 Subject: [main] log name: requests independent of fontloader --- src/luaotfload-auxiliary.lua | 4 ++-- src/luaotfload-features.lua | 4 ++-- src/luaotfload-main.lua | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/luaotfload-auxiliary.lua b/src/luaotfload-auxiliary.lua index 716af98..14c2ab5 100644 --- a/src/luaotfload-auxiliary.lua +++ b/src/luaotfload-auxiliary.lua @@ -54,7 +54,7 @@ local start_rewrite_fontname = function () rewrite_fontname, "luaotfload.rewrite_fontname") rewriting = true - report ("log", 0, "aux", + report ("log", 1, "aux", "start rewriting tfmdata.name field") end end @@ -66,7 +66,7 @@ local stop_rewrite_fontname = function () luatexbase.remove_fromt_callback ("luaotfload.patch_font", "luaotfload.rewrite_fontname") rewriting = false - report ("log", 0, "aux", + report ("log", 1, "aux", "stop rewriting tfmdata.name field") end end diff --git a/src/luaotfload-features.lua b/src/luaotfload-features.lua index 1200d9e..4ad188f 100644 --- a/src/luaotfload-features.lua +++ b/src/luaotfload-features.lua @@ -808,13 +808,13 @@ local set_default_features = function (speclist) end speclist.script = script - report("log", 0, "load", + report("log", 1, "load", "auto-selecting default features for script: %s", script) local requested = defaults[script] if not requested then - report("log", 0, "load", + report("log", 1, "load", "no defaults for script %q, falling back to \"dflt\"", script) requested = defaults.dflt diff --git a/src/luaotfload-main.lua b/src/luaotfload-main.lua index d8dc1d1..dba1f52 100644 --- a/src/luaotfload-main.lua +++ b/src/luaotfload-main.lua @@ -565,7 +565,7 @@ request_resolvers.path = function (specification) local name = specification.name local exists, _ = lfsisfile(name) if not exists then -- resort to file: lookup - report ("log", 1, "load", + report ("log", 0, "load", "path lookup of %q unsuccessful, falling back to file:", name) file_resolver (specification) @@ -625,6 +625,8 @@ request_resolvers.name = function (specification) end local resolved, subfont = resolver (specification) if resolved then + report ("log", 0, "load", "Lookup/name: %q -> \"%s(%d)\"", + specification.name, resolved, subfont) specification.resolved = resolved specification.sub = subfont specification.forced = filesuffix (resolved) -- cgit v1.2.3