summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-08-31 12:07:10 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-08-31 12:07:10 +0200
commitd37b2982fe11f4d476b6dbc4c33065682af3855b (patch)
treeecd09543edb76dc81e3322f69ba3e1e331da6d64
parent4dd4ee4df065d2681486259bf59dbac8136ead53 (diff)
downloadluaotfload-d37b2982fe11f4d476b6dbc4c33065682af3855b.tar.gz
[letterspacing] do not skip first glyph if liga
-rw-r--r--luaotfload-extralibs.lua9
-rw-r--r--luaotfload-letterspace.lua4
2 files changed, 7 insertions, 6 deletions
diff --git a/luaotfload-extralibs.lua b/luaotfload-extralibs.lua
index 3769e06..5444b30 100644
--- a/luaotfload-extralibs.lua
+++ b/luaotfload-extralibs.lua
@@ -369,11 +369,10 @@ kerns.disablecharacterkerning = disablecharacterkerning
--- now for the simplistic variant
--- unit -> bool
local enablefontkerning = function ( )
- return add_processor(
- kernfont.handler,
- "typesetters.kernfont",
- "pre_linebreak_filter", "hpack_filter"
- )
+ return add_processor( kernfont.handler
+ , "typesetters.kernfont"
+ , "pre_linebreak_filter"
+ , "hpack_filter")
end
--- unit -> bool
diff --git a/luaotfload-letterspace.lua b/luaotfload-letterspace.lua
index 3134f22..847f175 100644
--- a/luaotfload-letterspace.lua
+++ b/luaotfload-letterspace.lua
@@ -118,7 +118,9 @@ kerncharacters = function (head)
goto nextnode
elseif firstkern then
firstkern = false
- goto nextnode
+ if not start.components then
+ goto nextnode
+ end
end
end