lib/parse/glyf.js
function transformPoints(points, transform) {
    var newPoints, i, pt, newPt;
    newPoints = [];
    for (i = 0; i < points.length; i += 1) {
        pt = points[i];
        newPt = {
            x: transform.xScale * pt.x + transform.scale01 * pt.y + transform.dx,
            y: transform.scale10 * pt.x + transform.yScale * pt.y + transform.dy,
            onCurve: pt.onCurve,
            lastPointOfContour: pt.lastPointOfContour
        };
        newPoints.push(newPt);
    }
    return newPoints;
}
function transformPoints(points, transform) {
    var newPoints, i, pt, newPt;
    newPoints = [];
    for (i = 0; i < points.length; i += 1) {
        pt = points[i];
        newPt = {
            x: transform.xScale * pt.x + transform.scale01 * pt.y + transform.dx,
            y: transform.scale10 * pt.x + transform.yScale * pt.y + transform.dy,
            onCurve: pt.onCurve,
            lastPointOfContour: pt.lastPointOfContour
        };
        newPoints.push(newPt);
    }
    return newPoints;
}
function transformPoints ( points , transform ) { var newPoints , i , pt , newPt ; newPoints = [ ] ; for ( i = 0 ; i < points . length ; i += 1 ) { pt = points [ i ] ; newPt = { x : transform . xScale * pt . x + transform . scale01 * pt . y + transform . dx , y : transform . scale10 * pt . x + transform . yScale * pt . y + transform . dy , onCurve : pt . onCurve , lastPointOfContour : pt . lastPointOfContour } ; newPoints . push ( newPt ) ; } return newPoints ; }
Transform an array of points and return a new array.
Transform an array of points and return a new array .