Replies: 1 comment 16 replies
-
Empty contours can't be represented with segment pens
Segment pens can't start a path on an offcurve (except for the on-curve-less quad blob)
Not sure, but a closed single-point path doesn't make much sense, either
Because it doesn't make sense to add a component in between a beginPath and an endPath call. Perhaps that's an aspect of the protocol that should be formally described. There's no real technical reason to disallow it, it just doesn't make sense: why would one want to do that? |
Beta Was this translation helpful? Give feedback.
-
So, while fiddling with #2202, I found that there's some magic in adapter pens like BasePointToSegmentPen that drops empty contours on endPath, shifts contours so they start on an on-curve and turns single-point contours into open ones. I am not familiar with the complexities of adapters so I'm wondering if these are optimizations or rather intrinsically needed? Should point pens be expected to do any of these optimizations, too?
Side question: why does ReverseContourPointPen require that a component is only added while a contour drawing is not in progress?
Beta Was this translation helpful? Give feedback.
All reactions