AssFace has asked for the wisdom of the Perl Monks concerning the following question:
My issue is that $long_string might be longer than the width of the image. I actually check this and then insert a newline in a spot I deem appropriate and then put that into the image - except that the newline (\n - and I even tried \n\r and \r\n and even \r\n\r) is not showing up in the image (they are in the string, but the image continues to plow them through the edge of the frame and it has no line breaks).$img->string(gdSmallFont, 10, 12, $long_string, $white);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Newline in GD?
by pc88mxer (Vicar) on Mar 13, 2008 at 22:37 UTC | |
by AssFace (Pilgrim) on Mar 13, 2008 at 22:46 UTC | |
|
Re: Newline in GD?
by nefigah (Monk) on Mar 13, 2008 at 22:44 UTC | |
|
Re: Newline in GD?
by zentara (Cardinal) on Mar 14, 2008 at 13:47 UTC |