fontlabapp.fontui.outline_routes.add_extremes · declarations 001
Back to fontlabapp.fontui.outline_routes.add_extremes
Cubic
module-attribute
Cubic
KEY
module-attribute
KEY
MARGIN
module-attribute
MARGIN
TITLE
module-attribute
TITLE
contour_plan
contour_plan(points: list[Point]) -> list[tuple[int, list[float]]]
[(segment number, [t, ...])] of one closed contour; [] when node 0 is off-curve.
extreme_changes
extreme_changes(layer: Any) -> list[Change]
One row per contour that gets extremes; notes for kept shapes.
Edit: (contour, plan, node count after). Key: (contour number, plan shape).
extremes
Parameters t of the x and y extremes of one cubic, sorted.
insert_extremes
insert_extremes(contour: Any, plan: list[tuple[int, list[float]]]) -> int
Insert the planned nodes from the last segment back. Return the number added.
After a split at t, the earlier part of the segment is the whole segment again, so the next lower parameter becomes t / previous t.
main
main() -> Any
Open the panel, or replace the one that is already open.
roots
roots(a: float, b: float, c: float) -> list[float]
Real roots of a t² + b t + c inside (MARGIN, 1 - MARGIN), rounded to 6 places.