convert font sizes to percentages