var test = require('canvas-testbed'); var Vector2 = require('vecmath').Vector2; var toGlyphMatrix3 = require('fontpath-vecmath').toGlyphMatrix3; var decompose = require('../index'); var TestFont = require('fontpath-test-fonts/lib/OpenBaskerville-0.0.75.ttf'); var tmpVec = new Vector2(); var glyph = TestFont.glyphs["a"]; var shapes = decompose(glyph, { steps: 20, }); //We can optionally simplify the path like so. //Remember, they are in font units (EM) so the simplify threshold //has to be given accordingly for (var i=0; i