Page 1 of 1

Caption word wrapping fails with punctuation

Posted: 2015-04-03T02:00:52-07:00
by arthur
Hello,

I am trying to word-wrap some text to a specific width:

Code: Select all

convert -size 60x -pointsize 40 caption:'b, c' a.png
but it looks like imagemagick ignores the comma and render in only one line instead of wrapping after the "b," (the text "b c" renders in less than 60px on only one line) ; if I try to render "b, c ", since "b c " renders in more than 60px, "b, c " renders on two separate lines as expected.

The pango method renders correctly, but I also need to use a custom ttf font without changing some system files is this possible ?

Thank you for your help,
Arthur

Re: Caption word wrapping fails with punctuation

Posted: 2015-04-03T02:14:30-07:00
by snibgo
It works as expected for me (IM 6.9.1.0 on Windows 8.1), breaking a line when it is too long. Your example "b, c" doesn't break for me because it fits in the given width.

What version IM are you on? Can you link to a failing example?