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 points 0 to contours[0], the second one is defined by the points contours[0] + 1 to contours[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)