a week ago
Hello,
I'm trying to use paragraph, textblock, richtext2 to output a line of text. The issue I'm having is that instead of wrapping at the end of the text width that I set, I'd like it to just cut off. Is this possible to achieve?
Many thanks
a week ago
I don't think that you can do that by a simple statement (sadly).
Instead you have to pull a trick (that GS theirself are doing): you create a dummy paragraph, but do not place it. Then you calculate the length. If this length is longer than what you need you have to cut the input text and discard the rest. Retry until it fits.