add parameter for setting text maximum limit for different text size