freetypy.Outline.get_cbox

Outline.get_cbox()

Get the control box. The control box encloses all the outline’s points, including Bézier control points. Though it coincides with the exact bounding box for most glyphs, it can be slightly larger in some situations (like when rotating an outline which contains Bézier outside arcs).

Computing the control box is very fast, while getting the bounding box can take much more time as it needs to walk over all segments and arcs in the outline.

See Glyph.get_cbox for a discussion of tricky fonts.