wrap text to image size

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rav
Forum Newbie
Posts: 5
Joined: Tue Aug 08, 2006 6:57 pm

wrap text to image size

Post by rav »

Hello:
My task: user to enter font, font size, text, text color(r,g,b), maximum 100 characterss, minimum any number of characters..

I need to write text in lines on an image and keep all sides of image blank with no text on it.

Also, if the text needs to fit in image with lines and wod wrapping.. if not then reduce the font and make it fit in image.

and crate a final alpha transparent image with text on it..

Can anyont help me in wrapping up text in lines and so reducing font... and
how can image borders bekept blank... currently, i amgetting text on image that is cutting and also comming on sides...

I will appreciate your help...

thanks
rav
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Post some code. Maybe we can start with that.
Post Reply