a script which sizes one-line text to fit the width of its container