<font size="4"><font color="RED">NEW RELEASE: 31th July 2012</font></font>
Download
I've refactored the plugin itself and the way it works. Should be a whole lot more efficient and stable.
The downside is, however, that since spritefont now uses in-memory canvas for each instance, more memory is used. However this shouldn't be an issue at all if you don't use too many Spritefont instances. In fact, thanks to in-memory canvas caching the texture, the performance boost is huge as it doesn't need to redraw text each tick you reposition, rotate, resize it.
WARNING!
Properties Max Length and Max Lines have been renamed as well as the wording of Resize mode has been changed.
You must reset those properties for all your projects using the older version of spritefont.
That is, change them and change back to new property. Sorry for the inconvenience!
Now, Spritefont should work like it was supposed to. Text alignment should also work properly now (Note: it aligns itself within the "text grid", not bounding box which defines the instance.).
Let me know if this now works with CocoonJS!