User Tim Down of the Stack Overflow forum provided a very simple Javascript code to clear selected text. This should work in all major browsers.

This method places a centered text on top of a bitmap object. You can modify the method to add parameters like a custom color, alignment or others.

The guys in the chatroom of #famous specifically sunrising and talves helped me out in setting the vertical alignment of a text inside a Surface.

The key here is the lineHeight property. Take this Javascript code for example:

Take note there is no attribute to setting the vertical alignment in Famo.us. This is the only way to do it.

Related Posts Plugin for WordPress, Blogger...