Skip to content

fontlabapp.anchors.canvas_rings.model

model

Original Apache-2.0 adaptation of mekkablue's duplicate-anchor rings.

No corpus source is copied. Explicit handle sizes replace Glyphs preferences. Caller owns refresh/lifecycle; no automatic tool gating or background claim.

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
capture function (canvas: Any, package: Any, *, handle_size: int=8, deadline: float | None=None) -> Snapshot Copy glyph×block×viewport occurrences with GC safety and binding guards.
check_deadline function (deadline: float) -> None Bound native refresh and quadratic pair search without partial results.
paint function (painter: Any, snapshot: Snapshot) -> None Draw red6/scale then yellow2/scale outlines; restore borrowed painter.
rings function (points: tuple[Point, ...], scale: float, *, handle_size: int=8, deadline: float | None=None) -> tuple[Ring, … Keep distance<1.0, all pairs and original diameter/stroke exponents.