The API for node.js & browser should be the same
Use fixed API
Fix spacing
Use single quotes
Merge pull request #16 from bulyshko/api-fixes

Unify the API for node.js & browser.
Use correct offset when building char to glyph mapping ranges.

We added the start of the cmap table to the position of the
idRangeOffset value, but we needed to use the start of the inner cmap
tables. Because idRangeOffset is set to zero most of the time, this bug
manifested itself only in rare cases.

This fixes #7.
Calculate correct midpoint for first contour point.

If the first point is off-curve, it connects to an implicit point
somewhere between the first and last point. This point was not
calculated before, resulting in strange curves at the start of the
contour.

This fix calculates the last point of the contour. It can handle all
cases for on- and off-curve points for the first and last points.

This fixes #18.
Merge branch 'master' into cff

Conflicts:
	opentype.js