lib/ttf/utils.js
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;
  });
}
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;
  });
}
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 ; } ) ; }
Remove closing point if it is the same as first point of contour. TTF doesn't need this point when drawing contours.
Remove closing point if it is the same as first point of contour . TTF doesn t need this point when drawing contours .