freetypy.Outline.embolden¶
-
Outline.embolden()¶ Embolden an outline. The new outline will be at most 4 times
strengthpixels wider and higher. You may think of the left and bottom borders as unchanged.Negative
strengthvalues to reduce the outline thickness are possible also.Parameters: strength : float
How strong the glyph is emboldened.
Notes
The used algorithm to increase or decrease the thickness of the glyph doesn’t change the number of points; this means that certain situations like acute angles or intersections are sometimes handled incorrectly.
If you need ‘better’ metrics values you should call
Outline.get_cboxorOutline.get_bbox.