New algorithm for text split and font size