Fix font size calculation for static text