Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Images

Text Wrapping in G.D Library

images php coding issues or problems here.

Moderators: macek, egami, gesf

Text Wrapping in G.D Library

Postby tamill » 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.
tamill
New php-forum User
New php-forum User
 
Posts: 8
Joined: Tue Aug 23, 2005 5:55 pm

Postby Alexej Kubarev » Sun Oct 23, 2005 2:01 am

wordwrap() function might help.

look here: http://se.php.net/manual/en/function.wordwrap.php
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby tamill » Sun Oct 23, 2005 9:30 pm

thanks buddy it is really useful

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

Postby Alexej Kubarev » Mon Oct 24, 2005 10:29 am

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


Return to PHP coding => Images

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.