Text width and height issue fixed

Text width and height now returns the correct values