code: function removeClosingReturnPoints(contours) {
    return _.map(contours, function (contour) {
      var length = contour.length;
  
      if (length > 1 &&
        contour[0].x === contour[length - 1].x &&
        contour[0].y === contour[length - 1].y) {
        contour.splice(length - 1);
      }
      return contour;
    });
  }
docs: Remove closing point if it is the same as first point of contour. TTF doesn't need this point when drawing contours.