Skip to content

fontlabapp.fontui.outline_routes.overlap_nodes

overlap_nodes

Move a tip's adjacent corner onto the tip and align the next handle.

What: Create coincident nodes for alternate contour construction. This does not merge contours or remove overlap area. How: For each selected on-curve tip, inspect the next corner first, then the previous corner. Move the first corner followed by a control onto the tip, make it sharp, and align the control x along its master's italic angle. The layer name identifies its master, including auxiliary layers. The control y stays. Handle x is truncated to an integer in glyph space. Why: Explicit node selection, conflict refusal and a preview protect the neighbourhood. Selected-layer/all-master scope uses each layer's stored selection. Use: Select one tip per corner. Open the panel, inspect the rows and press Overlap. Reload selection after choosing other glyphs. Scaled and rotated shapes are refused; plain shape translations are supported. Benefit: Repeat a precise tip construction without dragging two nodes.

Safety: Locked layers, locked shapes and shared selected outline data are refused. Contours with their own transform are refused. Automatic-layer glyphs and their bases are skipped. The action replans live node selection before writing. A failed write names Edit > Undo. The change is recorded as one Undo step. Anchors, guides, widths and node order stay. FontLab can round node coordinates to its grid.

Source: Independent behaviour-only rewrite after Alex Slobzheninov (slobzheninov), https://github.com/slobzheninov/Glyphs-Scripts, Apache-2.0. No source code, identifiers or comments were copied. Additional idea credit: Rainer Erich Scheichelbauer (mekkablue), whose italic-coordinate snippet is credited by the source; independent rewrite. Behaviour source: Overlap nodes.py.

Classes

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
ACTION attribute
DONE attribute
KEY attribute
Move attribute
TITLE attribute
XY attribute (shared captured text)
main function () -> Any Open one reusable panel for this menu.
selected_contours function (layer: Any) -> list[tuple[Any, Any, list[Any]]] Read selected own contours; refuse locked or shared selected outlines.
tip_changes function (layer: Any, angle: float) -> list[outline_writer.Change] Collapse the adjacent corner onto each selected tip and align its handle.