From 91ff4fdfdaade8ef53875c45c084285047079f31 Mon Sep 17 00:00:00 2001 From: jvr Date: Tue, 4 Mar 2008 15:34:22 +0000 Subject: [PATCH] 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 --- Lib/fontTools/ttLib/tables/_g_l_y_f.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/fontTools/ttLib/tables/_g_l_y_f.py b/Lib/fontTools/ttLib/tables/_g_l_y_f.py index bc3bb5ea0..440d3f957 100644 --- a/Lib/fontTools/ttLib/tables/_g_l_y_f.py +++ b/Lib/fontTools/ttLib/tables/_g_l_y_f.py @@ -474,7 +474,7 @@ class Glyph: nCoordinates = len(self.coordinates) # make a copy - coordinates = self.coordinates.astype(self.coordinates.typecode()) + coordinates = numpy.array(self.coordinates) # absolute to relative coordinates coordinates[1:] = numpy.subtract(coordinates[1:], coordinates[:-1]) flags = self.flags