| |
- fontTools.pens.basePen.BasePen(fontTools.pens.basePen.AbstractPen)
-
- ControlBoundsPen
-
- BoundsPen
class BoundsPen(ControlBoundsPen) |
|
Pen to calculate the bounds of a shape. It calculates the
correct bounds even when the shape contains curves that don't
have points on their extremes. This is somewhat slower to compute
than the "control bounds".
When the shape has been drawn, the bounds are available as the
'bounds' attribute of the pen object. It's a 4-tuple:
(xMin, yMin, xMax, yMax) |
|
- Method resolution order:
- BoundsPen
- ControlBoundsPen
- fontTools.pens.basePen.BasePen
- fontTools.pens.basePen.AbstractPen
Methods inherited from ControlBoundsPen:
- __init__(self, glyphSet)
Methods inherited from fontTools.pens.basePen.BasePen:
- addComponent(self, glyphName, transformation)
- This default implementation simply transforms the points
of the base glyph and draws it onto self.
- closePath(self)
- curveTo(self, *points)
- endPath(self)
- lineTo(self, pt)
- moveTo(self, pt)
- qCurveTo(self, *points)
|
class ControlBoundsPen(fontTools.pens.basePen.BasePen) |
|
Pen to calculate the "control bounds" of a shape. This is the
bounding box of all control points, so may be larger than the
actual bounding box if there are curves that don't have points
on their extremes.
When the shape has been drawn, the bounds are available as the
'bounds' attribute of the pen object. It's a 4-tuple:
(xMin, yMin, xMax, yMax) |
|
- Method resolution order:
- ControlBoundsPen
- fontTools.pens.basePen.BasePen
- fontTools.pens.basePen.AbstractPen
Methods defined here:
- __init__(self, glyphSet)
Methods inherited from fontTools.pens.basePen.BasePen:
- addComponent(self, glyphName, transformation)
- This default implementation simply transforms the points
of the base glyph and draws it onto self.
- closePath(self)
- curveTo(self, *points)
- endPath(self)
- lineTo(self, pt)
- moveTo(self, pt)
- qCurveTo(self, *points)
| |