Change text size automatically

Not exactly what you want, but you may try Ellipsize label extension to restrict the label text within specified number of lines and truncates if it exceeds.