Use measureText method to calculate width of text, other measure result is not supported yet
Add a simple test for measureText method