Skip to content

fontlabapp.contours.selection.model

model

Select complete, small or partial own contours in the first selected layer.

Behavior adapted from Pedro Arilla's Paths/Select paths.py, Select small paths.py and Select partial path.py, copyright 2018–2022 Pedro Arilla, Apache-2.0. This independent FontLab adaptation uses analytic FontTools area; curved results can differ from Glyphs' flattened area. See NOTICE for exact source hashes. No host, Qt or optional geometry dependency loads until an action needs it.

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
Mode attribute
Point attribute (shared captured text)
Segments attribute
plan function (paths: tuple[Path, ...], mode: Mode, limit: Any=None) -> Plan Preserve exact original order, strict comparison and cross-path toggles.
select_contours function () -> int Expand any selected own node, including a control, to its whole contour.
select_partial_contours function () -> int Fill stored-order spans; the toggle state carries across contour bounds.
select_small_contours function (value: Any) -> int Clear first-layer selection and select own contours below a finite area.
show_small_contours function () -> Any Open an owned numeric prompt bound to the opening source, without writes.
threshold function (value: Any) -> float Parse finite square font units without rounding or clamping negatives.
unsigned_area function (segments: Segments) -> float Integrate native line/quadratic/cubic segments and close measurement only.