pstext -M overflow handling
|Affected version:||all||Platform:||Mac OS X|
Plotting text on a map in a box with a width smaller than the lenght of the longest word in text, thus overflowing the surrounding box.
- In case the first word of the paragraph is longer than the surrounding box, the first word is plotted twice with a non-specified offset. See "Box-1" in attached example.
- In case the longer word is not the first word in the paragraph, the behavior of pstext is as expected. See "Box-2" in attached example.
Expected behavior is as seen in "Box-2".
#1 Updated by Paul almost 5 years ago
- Status changed from New to Feedback
We will see if we can fix teh box-1 bug. IN general though, these problems will be tricky to "fix". Possible approaches would be (a) introduce automatic hyphenation, (b) shrink fontsize to accommodate given width, or (c) expand the box width to the minimum needed for longest word. Because all the decisions about type-setting is coded in the PostScript language it is difficult to introduce these changes, but probably not impossible. Automatic hyphenation is probably not an option. What sort of solution would you be looking for?
#2 Updated by Kristof almost 5 years ago
I would be happy with the behavior of Box-2 where the longest word simply spills over the box. The luxus version would be your expanding box where the width expands to the minimum width required to accommodate the largest word, if the required width is greater than the given one.
All the best,