summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Godfrey-Kittle <jamesgk@google.com>2015-04-16 14:29:38 -0700
committerjamesgk <jamesgk19@gmail.com>2015-04-16 14:29:38 -0700
commit3cc3e9d9a63a6c96f02d5f4eaf3adb9f986f6e54 (patch)
tree30b69eae781643c92c4575a046b9c6d87e895bb0
parent1ae3ad301bf69908f83ede7a2bf77be6fea729c6 (diff)
Clear base font's kerning when interpolating.
This matches the behavior of the old toolchain. The result should only contain kern rules for pairs present in both masters.
-rw-r--r--scripts/lib/fontbuild/mix.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lib/fontbuild/mix.py b/scripts/lib/fontbuild/mix.py
index 1a081c9..70d2e3a 100644
--- a/scripts/lib/fontbuild/mix.py
+++ b/scripts/lib/fontbuild/mix.py
@@ -293,6 +293,7 @@ class Mix:
gF.copyToGlyph(g)
except:
"Nodes incompatible"
+ newFont.kerning.clear()
newFont.kerning.update(self.mixKerns() or {})
return newFont