Added formula to font size calculations