fontlabapp.plugins.geometry · declarations 001
Back to fontlabapp.plugins.geometry
fill_points
fill_points(contours: tuple[Contour, ...], steps: int = 16) -> tuple[tuple[float, float], ...]
One odd-even polygon for all contours so counters stay open.
Each flattened contour is closed back to its own first point; the first points are then retraced in reverse so the bridging edges cancel in pairs.
flatten
flatten(contour: Contour, steps: int = 16) -> tuple[tuple[float, float], ...]
Polyline of a contour, curves at steps per segment, no repeated start.
shear
shear(points: tuple[tuple[float, float], ...], slant_deg: float, pivot_y: float) -> tuple[tuple[float, float], ...]
Slant points by slant_deg (top leans right when positive) about a height.