Improved text rotation