Page 1 of 1

Word wrap issues with caption

Posted: 2011-05-08T10:39:41-07:00
by qaz123
is this a bug in imagemagick? somehow when i type the following, word wrap works fine.

Code: Select all

convert -size 400x300 -font Arial-Bold -pointsize 40 -kerning -3 -interline-spacing -10 -gravity NorthWest -background black -fill white caption:"this is a very very very very very very long sentence to test for word wrapping for caption with image magick, the word wrap." -flatten output.png
but when i add some garbage in the sentence the it goes off the canvas.....

Code: Select all

convert -size 400x300 -font Arial-Bold -pointsize 40 -kerning -3 -interline-spacing -10 -gravity NorthWest -background black -fill white caption:"this is a very very very very very very long sentence to test for word wrapping for caption dfg dfgdf gdfg fdgdfg dfg with image magick, the word wrap." -flatten output.png
Why is this? btw, I'm using IM 6.6.9-6 on Windows 7, I'm only testing on Windows, can someone help me determine if Linux has the same problem? I'm hoping this can work on Linux.

Re: Word wrap issues with caption

Posted: 2011-05-08T11:15:27-07:00
by fmw42
convert -size 400x300 -font Arial-Bold -pointsize 40 -kerning -3 -interline-spacing -10 -gravity NorthWest -background black -fill white caption:"this is a very very very very very very long sentence to test for word wrapping for caption dfg dfgdf gdfg fdgdfg dfg with image magick, the word wrap." -flatten
This works fine for me under IM 6.6.9.8 Q16 Mac OSX Tiger. Perhaps an upgrade will help.

Re: Word wrap issues with caption

Posted: 2011-05-08T11:41:54-07:00
by qaz123
I tried with the latest version but the problem still persists, maybe I should try it on linux

Re: Word wrap issues with caption

Posted: 2011-05-09T00:07:50-07:00
by anthony
Check your version of freetype. IM uses that for the font rendering.