summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-08-31 12:45:15 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-08-31 12:45:15 +0200
commit9aec66e141e10d698e255c1303063e3a1236c278 (patch)
tree8cadd00504e69e265520f576f55da2c9e7ecfba4
parent57ed66cba09408ce5520668cc75482ccda490ef8 (diff)
downloadluaotfload-9aec66e141e10d698e255c1303063e3a1236c278.tar.gz
[letterspacing] skip redundant kerning of ligatures
-rw-r--r--luaotfload-letterspace.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/luaotfload-letterspace.lua b/luaotfload-letterspace.lua
index 961b0c5..b8bd36d 100644
--- a/luaotfload-letterspace.lua
+++ b/luaotfload-letterspace.lua
@@ -136,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)