Install & Compatibility
Where this runs
tested against v0.10.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
build_error
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.7s · import 0.000s · 47MB
46MB installed
● package 46MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
BooleanOperationManager
✓ from booleanOperations import BooleanOperationManager
✗ from booleanOperations import BooleanOperations
union
✓ from booleanOperations import union
✗ from booleanOperations import BooleanOperations
difference
✓ from booleanOperations import difference
✗ from booleanOperations import BooleanOperations
Basic union of a glyph outline and a rectangle. Output is a recording pen value.
from fontTools.pens.t2Pen import T2Pen
from fontTools.pens.recordingPen import RecordingPen
from fontTools.ttLib import TTFont
from fontTools.pens.pointPen import PointToSegmentPen
from booleanOperations import BooleanOperations
# Load a font, get a glyph
font = TTFont('MyFont.otf')
glyph = font.getGlyphSet()['A']
# Create a rectangle as a closed path
rect_pen = RecordingPen()
rect_pen.moveTo((0, 0))
rect_pen.lineTo((100, 0))
rect_pen.lineTo((100, 100))
rect_pen.lineTo((0, 100))
rect_pen.closePath()
# Get glyph outline
glyph_pen = RecordingPen()
glyph.draw(glyph_pen)
# Perform union
op = BooleanOperations()
result_pen = RecordingPen()
op.union(glyph_pen.value, rect_pen.value, result_pen)
print('Union result:', result_pen.value)
Upgrade
Version history
0.10.0latest on PyPI · released Jan 15, 2026
Audit
Dependencies
fonttoolsrequiredCore dependency for font data structures (Glyph, Pen, etc.)
pyclipperrequiredComputational geometry library for boolean operations