fontlabapp.studios._contours · declarations 001
Back to fontlabapp.studios._contours
Linear
module-attribute
Linear
check_moves
check_moves(layer: Any, moves: Iterable[Move]) -> None
NodeEditor.check: raise RuntimeError when a node differs after whole-unit rounding.
check_selection
SelectionEditor.check: read every moved node and component matrix back.
chosen_masters
chosen_masters(masters: Sequence[str], all_masters: bool, occurrences: Iterable[tuple[Any, str, str]] = (), package_id: Any = None) -> tuple[list[str], set[tuple[str, str]] | None]
Master names to edit and the selected (glyph, layer) pairs (None when every layer).
occurrences are the (package id, glyph, layer) triples a caller captured
from the editor selection; a triple from another font refuses.
fontlabapp.studios.outline_doctor.fixes.node_spans
node_spans(nodes: Sequence[Any], is_on: Callable[[Any], bool]) -> list[list[Any]]
Segments of one closed node cycle: each starts and ends on-curve.
Raises ValueError for any segment that is neither a line (2 nodes) nor a cubic (4 nodes), exactly like the five Scriptmix copies.
selected_contours
selected_contours(layer: Any) -> list[tuple[Any, Any, list[Any]]]
Selected own contours as (shape, contour, nodes); refuse locked or shared outlines.
selection_changes
Plan selected nodes and selected component transforms in glyph coordinates.
selection_matrix
Map glyph coordinates with linear(value) about centre.
fontlabapp.studios.outline_doctor.fixes.spans
spans(contour: Any) -> list[list[Any]]
Native flContour segments (Make Compatible, Comb, Straighten All Curves,
Superaligner, Curve All Straights).
write_moves
write_moves(moves: Iterable[Move]) -> None
NodeEditor.write: assign coordinates on the original node objects.