No project description provided
Project description
linesweeper
Python bindings for linesweeper, a Rust library for 2D boolean path operations.
Provides a union() function compatible with ufo2ft's overlap removal filter, as a drop-in replacement for skia-pathops.
Install
Requires Rust toolchain and maturin:
pip install maturin
maturin develop
Usage
from linesweeper import union
# contours: list of objects with a .draw(pen) method (e.g. defcon contours)
# outpen: a fontTools segment pen (moveTo/lineTo/curveTo/closePath)
union(contours, outpen, clockwise=True)
API
union(contours, outpen, clockwise=False)— merge overlapping contours using nonzero winding fill rule
Set clockwise=True for font convention (outer contours clockwise, holes counter-clockwise).
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file linesweeper-0.1.0.tar.gz.
File metadata
- Download URL: linesweeper-0.1.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
676a5d8d6e53b05eb3ad85bee794d493037cf1ad6608da2d536da857b5520e17
|
|
| MD5 |
bfa0aac2e34034b06107fb046c424be0
|
|
| BLAKE2b-256 |
b4908cfb64448c2671a209967ff57c38b3ce57bc356101f7ef77bc801c61362d
|
File details
Details for the file linesweeper-0.1.0-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: linesweeper-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 365.9 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7519a643aea14aa8b5cc86468c7874f6f02b0a47a6eabca0616b290caf99c90
|
|
| MD5 |
8f580b31d8f5852dfea56d3f8720eb08
|
|
| BLAKE2b-256 |
4d07c3894e0b516ff377d1d967ca8009687029d3f3d168d5460fab13de3856fa
|