Text Wrapping in G.D Library

images php coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
tamill
New php-forum User
New php-forum User
Posts: 8
Joined: Tue Aug 23, 2005 5:55 pm

Sat Oct 22, 2005 6:56 pm

Text Wrapping in G.D Library

Hi,

I need to know whether the is any possiblity in wraping a long text in a piture that is created with the G.D library function imagettfbox() & imagettftext() function.

for Example the

The Text is like

Welcome to the world of php. Php stands for Hypertext Pre-Processor.

Screenshot 1:

Image

in the screenshot 1 the text is written in the picture but it does not wrap.

I want similar thing like this:

Image

I want some help to wrap the text that is to be written in the picture.

Via imagettftext(). If there is any idea please help me.

Thanks in advance.

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2213
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Sun Oct 23, 2005 2:01 am

wordwrap() function might help.

look here: http://se.php.net/manual/en/function.wordwrap.php
Best Regards,
Alexej Kubarev
-------------------------------
Zend Certified Engineer
Image Image

tamill
New php-forum User
New php-forum User
Posts: 8
Joined: Tue Aug 23, 2005 5:55 pm

Sun Oct 23, 2005 9:30 pm

thanks buddy it is really useful

once again thanks

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2213
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Mon Oct 24, 2005 10:29 am

welcome :)
Best Regards,
Alexej Kubarev
-------------------------------
Zend Certified Engineer
Image Image

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests