You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, that's not a bug but a "feature" actually.. was added in #66
we use skia-pathops in font building/manipulation, and TrueType outlines can contain closed contours made up of a single quadratic spline in which the quadratic bezier on-curve points are implicit. The segments property returns a SegmentPenIterator that is meant to match the API of FontTools Segment Pen protocol which represents these contours like that (a single qCurveTo with a None on-curve point).
what's your use specific case?
If you want to retrieve the original skia path "verbs" and points, you should not use segments but just iterate over the path itself (which will yield RawPathIterator, not the SegmentPenIterator).
Thanks, I'm using nanoemoji which uses picosvg which uses this, I see that you're also a member of googlefonts so would you mind check out my issue picosvg#304?
The path:
Minimal reproducible code:
Output (last point is None):
When not calling
close()
, the last point is correct:Additionally, if we don't
skia.moveTo(0.117, 0.055)
, or move to a slightly different position, this won't occur.Is this an expected behavior?
The text was updated successfully, but these errors were encountered: