Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://674091]
help
Chatterbox?
NodeReaper says "Shhhh! Be vewy vewy quiet, I'm hunting wumpus"

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2017-08-19 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (310 votes). Check out past polls.

    Notices?