Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-07-2005, 11:52 PM   PM User | #1
jtrechter
New Coder

 
Join Date: Mar 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
jtrechter is an unknown quantity at this point
Wrapping text using imagettftext

I have this long blob of text that I'm passing in to display as png, but of course the text doesn't wrap and so it's cut off. Is there a way to fix it?

I tried imagettfbbox and imagecreatefromstring, but I can't seem to specify the font file to use or choose the text color. Any ideas?
Thanks.
jtrechter is offline   Reply With Quote
Old 07-08-2005, 02:20 PM   PM User | #2
delinear
Regular Coder

 
Join Date: Feb 2005
Location: West Midlands, UK
Posts: 623
Thanks: 0
Thanked 0 Times in 0 Posts
delinear is an unknown quantity at this point
There are a few ideas in the user comments for imagestring(), here, such as creating the text as an image first then resizing it and adding it to your original image, or wrapping the text to fit the image.
__________________
~ Bazzy
delinear is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:23 AM.


Advertisement
Log in to turn off these ads.