hi all.<br><br>I&#39;ve opened this bug a few weeks ago <a href="http://trac.osgeo.org/mapserver/ticket/2383">http://trac.osgeo.org/mapserver/ticket/2383</a> and implementing it shouldn&#39;t be too difficult. It sure isn&#39;t a perfect solution but imho still much better that the current way of treating the label WRAP parameter, by ensuring that no wrapping occurs until the current line length has reached a specified length. It would avoid breaking after short words, 
i.e.<br><br>&quot;This is a long label&quot; with wrap=&#39; &#39;<br><br>could be rendered by<br><br>&quot;This is a<br>long label&quot;<br><br><br>instead of <br>&quot;This<br>is<br>a<br>long<br>label&quot;<br><br>of course labels with very long words following short ones would be somewhat messed up
<br>for example &quot;this is a verlylongwordinthelabel&quot; would not be wrapped at all if minwraplength was set longer than &quot;this is a&quot;<br><br>complementary or not to this, I&#39;ve also tried out some rather naive text centering for multiline labels, that works by padding each line with a number of &#39;space&#39; characters. As you might expect, the results are much better with monospace fonts, but aren&#39;t /too/ horrible when using non monospaced font AND all the lines are roughly the same length. The same approach could also be used for aligning text to the right, although in that case a monospace font would be mandatory.
<br>&nbsp;Doing *real* centering would be really much harder, and would have to be done seperately for each renderer as the exact line lengths need to be known, and the starting offsets adjusted accordingly.<br><br>each of these two additions would require an additional keyword, for example &quot;MINWRAPLENGTH&quot; for the first, and maybe &quot;TEXTALIGN&quot; (LEFT|CENTER|RIGHT) for the second.
<br><br>thoughts / ideas / comments welcome !<br><br>cheers,<br>thomas<br><br>