Improvements to the auto-sizing algorithm

Text sizing is more reliable now