fixed line width calculation for correct h-centering