[task] optimize font size calculation