fontlabapp.fontui.outline_routes.fix_zero_handles · declarations 001
Back to fontlabapp.fontui.outline_routes.fix_zero_handles
KEY
module-attribute
KEY
PULL_LABEL
module-attribute
PULL_LABEL
TITLE
module-attribute
TITLE
ZERO
module-attribute
ZERO
cubic_segments
cubic_segments(points: list[Point]) -> list[tuple[int, int, int, int]]
(i0, i1, i2, i3) node indices of every cubic curve of a closed contour.
main
main() -> Any
Open the panel, or replace the one that is already open.
third
third(base: float, other: float) -> float
A third of the way from base to other, rounded half up to a whole
unit.
A whole unit survives FontLab's strong rounding, so the preview, the stored value and the read-back agree.
zero_changes
zero_changes(layer: Any, pull: bool) -> list[Change]
One row per contour with retracted handles; notes for kept shapes.
Edit: (contour, end nodes of the lines, [(handle node, x, y)], node count after). Key: (contour number, start indices of the lines), or None when only handles move.
zero_handles
zero_handles(points: list[Point]) -> tuple[list[tuple[int, int]], list[tuple[int, int, int]]]
(curves to make lines, single retracted handles).
Lines: (start index, end index). Singles: (handle, its node, other handle).