freetypy.Outline.contours¶
-
Outline.
contours
¶ A
memoryview
giving the end point of each contour within the outline. For example, the first contour is defined by the points0
tocontours[0]
, the second one is defined by the pointscontours[0] + 1
tocontours[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)