summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorJames Godfrey-Kittle <jamesgk@google.com>2015-06-19 14:14:48 -0700
committerJames Godfrey-Kittle <jamesgk@google.com>2015-06-19 14:14:48 -0700
commit796196bf0d6c9241186da1e2d6937c6a08d84161 (patch)
tree4b9a8da5fc72184efa68760f487a0b10662bddd1 /scripts/lib
parent12671eac9ed0f6be5fff8202d115d56efca864ae (diff)
Revert "Don't convert mixed glyph values to ints."
This reverts commit 9292364c1a122498ada2616fdd20683c27c80e15. Necessary because it caused condensed glyphs to italicize incorrectly.
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/fontbuild/mix.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/fontbuild/mix.py b/scripts/lib/fontbuild/mix.py
index 2c741fb..63f218f 100644
--- a/scripts/lib/fontbuild/mix.py
+++ b/scripts/lib/fontbuild/mix.py
@@ -203,10 +203,10 @@ class FGlyph:
return ng
def _derefX(self,id):
- return self.dataX[id]
+ return int(round(self.dataX[id]))
def _derefY(self,id):
- return self.dataY[id]
+ return int(round(self.dataY[id]))
def addDiff(self,gB,gC):
newGlyph = self + (gB - gC)