freetypy.Outline.contours¶
-
Outline.contours¶ A
memoryviewgiving the end point of each contour within the outline. For example, the first contour is defined by the points0tocontours[0], the second one is defined by the pointscontours[0] + 1tocontours[1], etc.If using numpy, you may want to use this as a Numpy array as follows:
>>> import numpy as np >>> a = np.asarray(outline.contours)