Skip to content

fontlab_pens.measure.PointInsidePen

PointInsidePen

Tests whether testPoint lies inside the drawn outline.

Shoots a ray to +x and counts crossings: non-zero winding by default, even-odd with evenOdd=True. Reuse via setTestPoint before drawing. Quadratics are measured through BasePen's cubic elevation.

Source bases

Inherited member index

Source-proven inherited members; local declarations override these entries.

  • MissingComponentError — defined by fontlab_pens.base.DecomposingPen.MissingComponentError
  • addComponent — defined by fontlab_pens.base.DecomposingPen.addComponent
  • addVarComponent — defined by fontlab_pens.base.DecomposingPen.addVarComponent
  • closePath — defined by fontlab_pens.base.BasePen.closePath
  • curveTo — defined by fontlab_pens.base.BasePen.curveTo
  • endPath — defined by fontlab_pens.base.BasePen.endPath
  • lineTo — defined by fontlab_pens.base.BasePen.lineTo
  • log — defined by fontlab_pens.base._LogMixin.log
  • moveTo — defined by fontlab_pens.base.BasePen.moveTo
  • qCurveTo — defined by fontlab_pens.base.BasePen.qCurveTo
  • skipMissingComponents — defined by fontlab_pens.base.DecomposingPen.skipMissingComponents

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
__init__ function (self, glyphSet: Mapping[str, Any] | None, testPoint: Point, evenOdd: bool=False) -> None
getResult function (self) -> bool Return True if the test point is inside the shape.
getWinding function (self) -> int Return the winding number (closing any open sub path first).
setTestPoint function (self, testPoint: Point, evenOdd: bool=False) -> None Set the point to test; call before the outline is drawn.