summaryrefslogtreecommitdiff
path: root/luaotfload-letterspace.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-02-09 16:57:00 +0100
committerPhilipp Gesang <phg42.2a@gmail.com>2014-02-09 16:57:00 +0100
commitc148347cb5c2c6cd3b58ac9daaad751500e190fd (patch)
tree9a54c17e9a1730aeb65453f27f010c4f8d57171f /luaotfload-letterspace.lua
parent72692325b88bda53a115e62c66b321253297533b (diff)
parent2c6feb979da6435bb9f6636a46be576f688f7f78 (diff)
downloadluaotfload-c148347cb5c2c6cd3b58ac9daaad751500e190fd.tar.gz
Merge pull request #192 from phi-gamma/texlive2014
overhaul of the logging subsystem
Diffstat (limited to 'luaotfload-letterspace.lua')
-rw-r--r--luaotfload-letterspace.lua11
1 files changed, 7 insertions, 4 deletions
diff --git a/luaotfload-letterspace.lua b/luaotfload-letterspace.lua
index 1957f9a..20f29f5 100644
--- a/luaotfload-letterspace.lua
+++ b/luaotfload-letterspace.lua
@@ -6,6 +6,9 @@ if not modules then modules = { } end modules ['letterspace'] = {
license = "see context related readme files"
}
+local log = luaotfload.log
+local report = log.report
+
local getmetatable = getmetatable
local require = require
local setmetatable = setmetatable
@@ -512,10 +515,10 @@ otffeatures.register {
local initializecompatfontkerning = function (tfmdata, percentage)
local factor = tonumber (percentage)
if not factor then
- logs.names_report ("both", 0, "letterspace",
- "Invalid argument to letterspace: %s (type %q), " ..
- "was expecting percentage as Lua number instead.",
- percentage, type (percentage))
+ report ("both", 0, "letterspace",
+ "Invalid argument to letterspace: %s (type %q), " ..
+ "was expecting percentage as Lua number instead.",
+ percentage, type (percentage))
return
end
return initializefontkerning (tfmdata, factor * 0.01)