I'm having some issues getting caption to wrap lines properly.

I am attempting to build an image from a text file and am getting various results, none of which are quite correct. This file is saved as Unix/UTF-8 encoding. At first it seemed just that IM was not recognizing the line-break character, but even after I got past that, it's still behaving oddly. All the examples below were done with the same image width and font settings in the IM command line.

If the text file is saved like this:
BOB’S BAIT & TACKLE
UNDERWOOD, NJ
“THE BAY’S BEST BAIT!”

The image breaks like this:
BOB’S BAIT & TACKLE UNDERWOOD, NJ
“THE BAY’S BEST BAIT!”

This:
BOB’S BAIT & TACKLE\n“THE BAY’S BEST BAIT!”\nUNDERWOOD, NJ

produces:
BOB’S BAIT & TACKLE
“THE
BAY’S BEST BAIT!”
UNDERWOOD, NJ

This:
BOB’S BAIT & TACKLE\nUNDERWOOD, NJ\n“THE BAY’S BEST BAIT!”

produces:
BOB’S BAIT & TACKLE
UNDERWOOD,
NJ
“THE BAY’S BEST BAIT!”

Any ideas?




A.T.Tribby, New Media Developer
Unconformity, LLC
http://unconformity.com/
p.703.548.8154
f.703.548.8151

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to