Skip to content

fontlab_pens.measure

measure

Measuring pens: control bounds, exact bounds, signed area, point-inside.

Only the array and bezier helpers these pens need are ported, with fontTools' constants (epsilon = 1e-10, epsilonDigits = 6) so results match.

Classes

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
Point attribute (shared captured text)
Rect attribute
calcCubicBounds function (pt1: Point, pt2: Point, pt3: Point, pt4: Point) -> Rect Exact bounding box of a cubic bezier segment.
calcQuadraticBounds function (pt1: Point, pt2: Point, pt3: Point) -> Rect Exact bounding box of a quadratic bezier segment.
epsilon attribute
epsilonDigits attribute