Improve the font size adjustment to prevent infinite loop or too small font. It is better to exceed the size than not to show anything.