Skip to content

Fix `shape_with_offset` method to correctly return multiple contours

Jeremy Soller requested to merge kryptan:master into master

Created by: kryptan

Shape was calculated incorrectly as MoveTo instructions were always ignored. Condition result.len() != 0 is always false so new contour would never be started. For example for the letter 'A' you would expect two contours - one for the letter itself and one for the hole, but only one unified contour was returned. This PR fixes this.

Merge request reports