support for rotation and getting text length