summaryrefslogtreecommitdiff
path: root/src/fontloader/misc/fontloader-fonts-cbk.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2015-03-11 07:46:44 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2015-03-11 07:46:44 +0100
commitf070e8b5b193c0ce686d2e6448b53338a499aecf (patch)
tree637122d22c56e6ad3a0b3a1a47ae2a2b9c46126b /src/fontloader/misc/fontloader-fonts-cbk.lua
parent380989f0de1f2aa9a8d0a0856de1b1e09321d1e5 (diff)
downloadluaotfload-f070e8b5b193c0ce686d2e6448b53338a499aecf.tar.gz
[fontloader] sync with Context as of 2015-03-11
Diffstat (limited to 'src/fontloader/misc/fontloader-fonts-cbk.lua')
-rw-r--r--src/fontloader/misc/fontloader-fonts-cbk.lua13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/fontloader/misc/fontloader-fonts-cbk.lua b/src/fontloader/misc/fontloader-fonts-cbk.lua
index 414cafb..ce19c88 100644
--- a/src/fontloader/misc/fontloader-fonts-cbk.lua
+++ b/src/fontloader/misc/fontloader-fonts-cbk.lua
@@ -116,13 +116,14 @@ function nodes.handlers.nodepass(head)
if basepass and #basefonts > 0 then
for i=1,#basefonts do
local range = basefonts[i]
- local start, stop = range[1], range[2]
+ local start = range[1]
+ local stop = range[2]
if stop then
- ligaturing(start,stop)
- kerning(start,stop)
- else
- ligaturing(start)
- kerning(start)
+ start, stop = ligaturing(start,stop)
+ start, stop = kerning(start,stop)
+ elseif start then
+ start = ligaturing(start)
+ start = kerning(start)
end
end
end