Skip to content

fontlabapp.plugins.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
fill_points function (contours: tuple[Contour, ...], steps: int=16) -> tuple[tuple[float, float], ...] One odd-even polygon for all contours so counters stay open.
flatten function (contour: Contour, steps: int=16) -> tuple[tuple[float, float], ...] Polyline of a contour, curves at <code>steps</code> per segment, no repeated start.
length function (segment: tuple[Node, ...], steps: int=25) -> float Measure a line exactly and a Bézier by uniform flattening. (shared captured text)
neighbours function (contour: Contour, index: int) -> tuple[Node | None, Node | None] Return neighbours without wrapping the ends of an open contour. (shared captured text)
point_at function (segment: tuple[Node, ...], t: float) -> tuple[float, float] Evaluate a line, quadratic or cubic segment at fractional position t. (shared captured text)
segments function (contour: Contour) -> tuple[tuple[Node, ...], ...] Split lines, quadratic and cubic segments; skip longer control runs. (shared captured text)
shear function (points: tuple[tuple[float, float], ...], slant_deg: float, pivot_y: float) -> tuple[tuple[float, float], ...] Slant points by <code>slant&#95;deg</code> (top leans right when positive) about a height.