1.0.0 • Published 10 years ago

fontpath-draw-glyph v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

fontpath-draw-glyph

experimental

Draws a single fontpath glyph to the canvas using the native bezier/quadratic functions of HTML5 canvas API. Mostly used internally.

Usage

NPM

var draw = require('fontpath-draw-glyph')

//draws the glyph with the given scale/position to the context
draw(context, glyph, scale, x, y)

License

MIT, see LICENSE.md for details.