summaryrefslogtreecommitdiff
path: root/src/luaotfload-letterspace.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2015-07-22 23:06:43 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2015-07-22 23:06:46 +0200
commitff022fd5de42d55aef94ce7cd7e221055f1d0c6a (patch)
tree3cb0dd107d8c0b8878c87bf9c8d74657d04d2798 /src/luaotfload-letterspace.lua
parent1f360a62ce1f1b6cd4601e349718e414f64d8f35 (diff)
downloadluaotfload-ff022fd5de42d55aef94ce7cd7e221055f1d0c6a.tar.gz
[letterspace] invoke spacing function on converted head
Letterspacing should be functional again.
Diffstat (limited to 'src/luaotfload-letterspace.lua')
-rw-r--r--src/luaotfload-letterspace.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/luaotfload-letterspace.lua b/src/luaotfload-letterspace.lua
index 8956f82..9a0646b 100644
--- a/src/luaotfload-letterspace.lua
+++ b/src/luaotfload-letterspace.lua
@@ -471,12 +471,15 @@ local enablefontkerning = function ( )
local handler = function (hd)
local direct_hd = todirect (hd)
- local hd, _done = kerncharacters (hd)
- if not hd then --- bad
+ logreport ("term", 5, "letterspace",
+ "kerncharacters() invoked with node.direct interface \z
+ (``%s`` -> ``%s``)", tostring (hd), tostring (direct_hd))
+ local direct_hd, _done = kerncharacters (direct_hd)
+ if not direct_hd then --- bad
logreport ("both", 0, "letterspace",
"kerncharacters() failed to return a valid new head")
end
- return tonode (hd)
+ return tonode (direct_hd)
end
return add_processor( handler