Skip to content

mattdesl/canvas-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

canvas-text

experimental

work in progress

Easier Canvas2D text rendering.

  • multiline text with \n
  • word-wrapping
  • left/center/right alignment
  • inline styles
  • moar

Demo:

http://mattdesl.github.io/canvas-text

This still has some bugs that is cutting off text in places. If you'd like to contribute, drop me a line in the issues. For now, the current version is unstable 0.x and undocumented until bugs are smoothed out.

Usage

NPM

to come

License

MIT, see LICENSE.md for details.

About

[experiment] better Canvas2D text rendering

Resources

License

Stars

Watchers

Forks

Packages

No packages published