ar.typecode() doesn't exist in numpy, but then again, this was overkill
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@538 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
parent
1b7d54fedc
commit
91ff4fdfda
@ -474,7 +474,7 @@ class Glyph:
|
|||||||
nCoordinates = len(self.coordinates)
|
nCoordinates = len(self.coordinates)
|
||||||
|
|
||||||
# make a copy
|
# make a copy
|
||||||
coordinates = self.coordinates.astype(self.coordinates.typecode())
|
coordinates = numpy.array(self.coordinates)
|
||||||
# absolute to relative coordinates
|
# absolute to relative coordinates
|
||||||
coordinates[1:] = numpy.subtract(coordinates[1:], coordinates[:-1])
|
coordinates[1:] = numpy.subtract(coordinates[1:], coordinates[:-1])
|
||||||
flags = self.flags
|
flags = self.flags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user