fontlab_plugmix.geometry
geometry
Small pure contour-segment operations shared by reporter computations.
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 |
|---|---|---|---|
length |
function | (segment: tuple[Node, ...], steps: int=25) -> float |
Measure a line exactly and a Bézier by uniform flattening. |
neighbours |
function | (contour: Contour, index: int) -> tuple[Node | None, Node | None] |
Return neighbours without wrapping the ends of an open contour. |
point_at |
function | (segment: tuple[Node, ...], t: float) -> tuple[float, float] |
Evaluate a line, quadratic or cubic segment at fractional position t. |
segments |
function | (contour: Contour) -> tuple[tuple[Node, ...], ...] |
Split lines, quadratic and cubic segments; skip longer control runs. |