freetypy.Outline¶
-
class
freetypy.Outline¶ Represents an outline.
-
__init__()¶ x.__init__(...) initializes x; see help(type(x)) for signature
Methods
checkCheck the contents of an outline descriptor. decomposeDecompose the outline into individual segments and Bézier arcs. emboldenEmbolden an outline. get_bboxCompute the exact bounding box of an outline. get_cboxGet the control box. get_orientationThis function analyzes a glyph outline and tries to compute its fill orientation. reverseReverse the drawing direction of an outline. to_points_and_codes⨎ Convert the outline to a pair of arrays (points, codes). to_string⨎ Convert the outline to a text format string of commands. transformApply a simple 2x2 matrix to all of an outline’s points. translateApply a simple translation to the points of an outline. Attributes
contoursA memoryviewgiving the end point of each contour within the outline.flagsA set of OUTLINEflags used to characterize the outline.n_contoursThe number of contours in the outline. n_pointsThe number of points in the outline. pointsA memoryviewof points in the outline.tagsA memoryviewofn_pointsvalues, giving each outline point’s type.-