summaryrefslogtreecommitdiff
path: root/luaotfload-letterspace.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-08-27 03:10:58 -0700
committerPhilipp Gesang <phg42.2a@gmail.com>2013-08-27 03:10:58 -0700
commite434a8064bc907aa225732c8575e465e31deddc9 (patch)
treeb0e506c18156761ce0db02db4443090559a91014 /luaotfload-letterspace.lua
parenteb57bf69db2ceddb02143bc49ed07e60262cc4f5 (diff)
parent8cac5c680e0a74e87bb7bfe369d6c13a294117f9 (diff)
downloadluaotfload-e434a8064bc907aa225732c8575e465e31deddc9.tar.gz
Merge pull request #129 from phi-gamma/master
[letterspacing] skip first node when applying extra kerns
Diffstat (limited to 'luaotfload-letterspace.lua')
-rw-r--r--luaotfload-letterspace.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/luaotfload-letterspace.lua b/luaotfload-letterspace.lua
index 880c7bd..be51711 100644
--- a/luaotfload-letterspace.lua
+++ b/luaotfload-letterspace.lua
@@ -1,5 +1,5 @@
if not modules then modules = { } end modules ['letterspace'] = {
- version = "2.3a",
+ version = "2.4",
comment = "companion to luaotfload.lua",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL; adapted by Philipp Gesang",
copyright = "PRAGMA ADE / ConTeXt Development Team",
@@ -89,6 +89,8 @@ kerncharacters = function (head)
local identifiers = fonthashes.identifiers
local kernfactors = kernfactors
+ local firstkern = true
+
while start do
local id = start.id
if id == glyph_code then
@@ -113,6 +115,9 @@ kerncharacters = function (head)
end
if not krn or krn == 0 then
goto nextnode
+ elseif firstkern then
+ firstkern = false
+ goto nextnode
end
end