Skip to content

fontlabapp.fontui.outline_routes.delete_small_contours · declarations 001

Back to fontlabapp.fontui.outline_routes.delete_small_contours

KEY module-attribute

KEY

TITLE module-attribute

TITLE

main

main() -> Any

Open the panel, or replace the one that is already open.

segments_of

segments_of(points: list[Point], truetype: bool) -> tuple[tuple[XY, ...], ...]

Continuous line and Bezier segments of a contour, closed for measurement.

PostScript: two controls make a cubic. TrueType: a run of controls is a quadratic spline; the implied on-curve points lie half-way between two controls. Return () when the contour has no on-curve node.

small_changes

small_changes(layer: Any, threshold: float) -> list[Change]

One row per contour with area below threshold; notes for kept shapes.

Edit: (shape, contour). Key: the contour number.