function pathToPoints(cmds, options) {
            var opts = parseOpts(options, {
              sampleFactor: 0.1,
              simplifyThreshold: 0
            });

            var // total-length
              len = pointAtLength(cmds, 0, 1),
              t = len / (len * opts.sampleFactor),
              pts = [];

            for (var i = 0; i < len; i += t) {
              pts.push(pointAtLength(cmds, i));
            }

            if (opts.simplifyThreshold) {
              simplify(pts, opts.simplifyThreshold);
            }

            return pts;
          }
Returns an opentype path for the supplied string and position.

@private
@param  {String} line     a line of text
@param  {Number} x        x-position
@param  {Number} y        y-position
@param  {Object} options opentype options (optional)
@return {Object}     the opentype path