fontlabapp.contours.extent · declarations 001
Back to fontlabapp.contours.extent
CURVE
CURVE
EPSILON
module-attribute
EPSILON
Node
module-attribute
Node
OFF
OFF
ON
ON
SEGMENT_CONTROLS
module-attribute
SEGMENT_CONTROLS
contour_ys
contour_ys(nodes: list[Node], closed: bool) -> list[float]
Return the end and extreme y values of every segment of one contour.
cubic_extremes
cubic_extremes(p0: float, p1: float, p2: float, p3: float) -> list[float]
Return the values of a cubic Bezier coordinate at its turning points in (0, 1).
quadratic_extremes
quadratic_extremes(p0: float, p1: float, p2: float) -> list[float]
Return the value of a quadratic Bezier coordinate at its turning point in (0, 1).
segments
Yield the line, quadratic and cubic segments of one contour, in order.
vertical_extent
vertical_extent(layer: Any) -> tuple[float, float] | None
Return (ymin, ymax) of the outlines of layer, or None when empty.
Reads layer.shapes, shape.transform, shape.contours,
contour.nodes(), contour.closed, node.x, node.y,
node.isOn() and node.isCurve() only; never boundingBox
(fl#8575). Raises ValueError for an outline it cannot read (bad
topology, projective transform).