summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorJames Godfrey-Kittle <jamesgk@google.com>2015-06-11 14:07:16 -0700
committerJames Godfrey-Kittle <jamesgk@google.com>2015-06-11 14:07:16 -0700
commit9292364c1a122498ada2616fdd20683c27c80e15 (patch)
treec0409a203e8c35af4984fe6f24746d2c31996041 /scripts/lib
parent01399c7f2f5ca881e2ed6df9c83e44145d9ea6ff (diff)
Don't convert mixed glyph values to ints.
Doing this conversion visibly changes the appearance of some composite glyphs, since e.g. a component scale of 1.6 would be rounded to 2. What doesn't make sense is why this was working with FontLab....
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 63f218f..2c741fb 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 int(round(self.dataX[id]))
+ return self.dataX[id]
def _derefY(self,id):
- return int(round(self.dataY[id]))
+ return self.dataY[id]
def addDiff(self,gB,gC):
newGlyph = self + (gB - gC)