Skip to content

fontlabapp.fontui.outline_routes.straighten_short_curves · declarations 001

Back to fontlabapp.fontui.outline_routes.straighten_short_curves

KEY module-attribute

KEY

TITLE module-attribute

TITLE

chord_offset

chord_offset(point: XY, a: XY, b: XY) -> tuple[float, float]

(distance from the line ab, position along ab as a fraction of its length).

main

main() -> Any

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

straight_segments

straight_segments(points: list[Point], max_length: float, tolerance: float) -> list[tuple[int, int, float]]

[(start index, end index, deviation)] of curves short and flat enough.

straighten_changes

straighten_changes(layer: Any, max_length: float, tolerance: float) -> list[Change]

One row per contour with curves to straighten; notes for kept shapes.

Edit: (contour, end nodes of the curves, node count after). Key: (contour number, start indices of the curves).