freetypy.Outline.to_points_and_codes¶
-
Outline.
to_points_and_codes
()¶ ⨎ Convert the outline to a pair of arrays (points, codes).
- points is an Nx2 array of floats for each point
- codes in a length N array of
CODES
constants:- 0:
MOVETO
(1 point) - 1:
LINETO
(1 point) - 2:
CUBIC
(2 points) - 3:
CONIC
(3 points)
- 0:
Returns: arrays – A (points, codes) pair Return type: tuple