summaryrefslogtreecommitdiff
path: root/otfl-node-inj.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-02-25 00:38:44 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-02-25 00:41:34 +0200
commit6329e52d8aa7381a248e4a7dbf734d2ad083c50f (patch)
tree67c0f600cede869caf726c5d77a1d6371d6aa137 /otfl-node-inj.lua
parente064aa2dc70fb819cfdb6b3c0bdf1d081859584f (diff)
downloadluaotfload-6329e52d8aa7381a248e4a7dbf734d2ad083c50f.tar.gz
Updating to latest ConTeXt beta (2010.02.24)
Now encoding related code gone.
Diffstat (limited to 'otfl-node-inj.lua')
-rw-r--r--otfl-node-inj.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/otfl-node-inj.lua b/otfl-node-inj.lua
index 4c58409..9c4612a 100644
--- a/otfl-node-inj.lua
+++ b/otfl-node-inj.lua
@@ -70,7 +70,8 @@ function nodes.set_pair(current,factor,rlmode,r2lflag,spec,tfmchr)
local bound = has_attribute(current,kernpair)
if bound then
local kb = kerns[bound]
- kb[2], kb[3], kb[4], kb[5] = kb[2] + x, kb[3] + y, kb[4] + w, kb[5] + h
+ -- inefficient but singles have less, but weird anyway, needs checking
+ kb[2], kb[3], kb[4], kb[5] = (kb[2] or 0) + x, (kb[3] or 0) + y, (kb[4] or 0)+ w, (kb[5] or 0) + h
else
bound = #kerns + 1
set_attribute(current,kernpair,bound)