abbreviateText ?-font dict? ?-break mode? ?--? string width
Return an abbreviated string that will fit in the given pixel length specified by the width argument.
The -font option has the same meaning as with the [getTextDimensions] command. See the file Alpha Fonts to know how fonts are specified. If no font is specified, the default is to use the system font at size 10.
The -break option specifies where the string argument should be truncated. The possible values are:
headtruncate at the start of the string
middletruncate in the middle of the string
tailtruncate at the end of the string
The default is tail.
The '--' option indicates the end of the options.