I want to use this to put truncate stuff and put … If a text string in too long.
I can work out how to do this in thery, with an array of chars and relative widths (for a specific font, in my case Helvitica) but can find details fo the widths anywhare. Any ideas?
The web is not print. You may specify 12pt Helvetica but what the
end user sees may be something else -- a different font, a different
size, different kerning, different line height, different word-spacing...
That's aside from the question of "too long" for what? To fit in a
container that's probably variable in size as well?