var shapes = contours.map(function (contour) { return { id: guid('shape'), type: 'path', points: contour }; });
this.setShapes(contours.map(function(contour){ return { id: guid('shape'), type: 'path', points: contour }; }));
shapes.forEach(function (shape) { pathAdjust(shape.points, scale, -scale); pathAdjust(shape.points, 1, 1, origin.x, origin.y); if (shapeIdList[shape.id]) { shape.id = guid('shape'); } fontLayer.addShape(shape); });