Skip to content

fontlabapp.fontui.outline_routes.curve_all_straights

curve_all_straights

Convert straight segments to cubic curves.

What: Convert straight segments to cubic curves. How: Native segment conversion inserts handles. Marks every on-curve node of converted contours smooth, including ends of existing curves. FontLab may realign handles at former corners when you edit them later. Why: Prepare traced outlines for curve editing. Use: Select nodes in the current layer to choose whole contours, or leave nodes unselected for all contours. The same contour and endpoint indices apply only to layers with matching contour counts, node counts and point types. Incompatible layers are listed as kept. Inspect the segment counts, then press Apply. Benefit: Adds a master-wide preview to native segment conversion.

The non-modal panel previews the selected glyphs and chosen masters. A layer that has a shared, scaled or rotated outline shape is kept as a whole. Automatic-layer owners are kept. Bases of automatic composites are kept unless the shared consent option is enabled. Each Apply is recorded as one Undo step through the App history writer. Reload after changing the selection.

Independent behaviour rewrite after Simon Cozens, GlyphsScripts/Curve All Straights.py, MIT, copyright 2017 Simon Cozens. Repository: https://github.com/simoncozens/GlyphsScripts . No source code was copied.

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
KEY attribute
MODE attribute
TITLE attribute
changes function (layer: Any, reference: Any | None=None) -> list[writer.Change] Map selected contour and endpoint indices from the current layer.
main function () -> Any Open one non-modal panel; replace an earlier panel of the same tool. (shared captured text)
spans function (contour: Any) -> list[list[Any]] Read complete line or cubic spans; refuse quadratic and open contours. (shared captured text)