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 byfontlab_pens.base.DecomposingPen.MissingComponentErroraddComponent— defined byfontlab_pens.base.DecomposingPen.addComponentaddVarComponent— defined byfontlab_pens.base.DecomposingPen.addVarComponentclosePath— defined byfontlab_pens.base.BasePen.closePathcurveTo— defined byfontlab_pens.base.BasePen.curveToendPath— defined byfontlab_pens.base.BasePen.endPathlineTo— defined byfontlab_pens.base.BasePen.lineTolog— defined byfontlab_pens.base._LogMixin.logmoveTo— defined byfontlab_pens.base.BasePen.moveToqCurveTo— defined byfontlab_pens.base.BasePen.qCurveToskipMissingComponents— defined byfontlab_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. |