summaryrefslogtreecommitdiff
path: root/luaotfload-letterspace.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-08-31 03:48:28 -0700
committerPhilipp Gesang <phg42.2a@gmail.com>2013-08-31 03:48:28 -0700
commita047f7b3c164f69b0713ee781aeefd07a27e8c61 (patch)
tree8cadd00504e69e265520f576f55da2c9e7ecfba4 /luaotfload-letterspace.lua
parenta02c539db15612e87b095c3665f56d9436e669fb (diff)
parent9aec66e141e10d698e255c1303063e3a1236c278 (diff)
downloadluaotfload-a047f7b3c164f69b0713ee781aeefd07a27e8c61.tar.gz
Merge pull request #131 from phi-gamma/master
improve letterspacing
Diffstat (limited to 'luaotfload-letterspace.lua')
-rw-r--r--luaotfload-letterspace.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/luaotfload-letterspace.lua b/luaotfload-letterspace.lua
index 3134f22..b8bd36d 100644
--- a/luaotfload-letterspace.lua
+++ b/luaotfload-letterspace.lua
@@ -118,7 +118,10 @@ kerncharacters = function (head)
goto nextnode
elseif firstkern then
firstkern = false
- goto nextnode
+ if (id ~= disc_code) and (not start.components) then
+ --- not a ligature, skip node
+ goto nextnode
+ end
end
end
@@ -133,11 +136,12 @@ kerncharacters = function (head)
--- 2) resolve ligatures
local c = start.components
+
if c then
if keepligature and keepligature(start) then
-- keep 'm
else
- c = kerncharacters (c)
+ --- c = kerncharacters (c) --> taken care of after replacing
local s = start
local p, n = s.prev, s.next
local tail = find_node_tail(c)