freetypy.Outline¶
-
class
freetypy.Outline¶ Represents 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.Methods
checkCheck the contents of an outline descriptor. decomposeDecompose the outline into individual segments and Bézier arcs. emboldenEmbolden an outline. embolden_xyEmbolden an outline. get_bboxCompute the exact bounding box of an outline. get_cboxReturn an outline’s ‘control box’. get_orientationThis function analyzes a glyph outline and tries to compute its fill orientation. reverseReverse the drawing direction of an outline. 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.