text size logic