summaryrefslogtreecommitdiff
path: root/luaotfload-letterspace.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-20 13:40:27 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-20 13:40:27 +0200
commitac4c2a64fc7883ad9c32f12d532fc8f0fc6f14a8 (patch)
treef83a825a8193f37b5955c20738cb5113e9caa3b9 /luaotfload-letterspace.lua
parent166b74a41e2ff61a7f09846081c474872a799d20 (diff)
downloadluaotfload-ac4c2a64fc7883ad9c32f12d532fc8f0fc6f14a8.tar.gz
fix adapted letterspacing
Diffstat (limited to 'luaotfload-letterspace.lua')
-rw-r--r--luaotfload-letterspace.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/luaotfload-letterspace.lua b/luaotfload-letterspace.lua
index 8566c06..8711646 100644
--- a/luaotfload-letterspace.lua
+++ b/luaotfload-letterspace.lua
@@ -90,7 +90,6 @@ kerncharacters = function (head)
local kernfactors = kernfactors
while start do
- local attr = start[attribute]
local id = start.id
if id == glyph_code then
@@ -163,7 +162,9 @@ kerncharacters = function (head)
-- nothing
elseif pid == kern_code then
- if prev.subtype == kerning_code or prev[a_fontkern] then
+ if prev.subtype == kerning_code --- context does this by means of an
+ or prev.subtype == userkern_code --- attribute; we may need a test
+ then
if keeptogether and prev.prev.id == glyph_code and keeptogether(prev.prev,start) then
-- keep
else