Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Newline in GD?

by nefigah (Monk)
on Mar 13, 2008 at 22:44 UTC ( #674091=note: print w/ replies, xml ) Need Help??

in reply to Newline in GD?

I would say pc88 is right--in most graphics libraries where you have to render text, the basic text rendering function creates one line and only one line. Change your current code that adds newlines to instead break up the string and throw it in an array, and then have a loop call $img->string on each array element.

I'm a peripheral visionary... I can see into the future, but just way off to the side.

Comment on Re: Newline in GD?
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://674091]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2015-11-26 08:35 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (696 votes), past polls