Scale text to properly fit in rect and center it