text-width: Simplify calculation of text widths at different font sizes.