Text: Added api to set script type and direction.

* bug fix for rtl text word wrapping.