How do you arc text using the gd library? Is it possible?

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
bobinindia
Forum Newbie
Posts: 3
Joined: Sat Mar 01, 2008 12:08 am

How do you arc text using the gd library? Is it possible?

Post by bobinindia »

I am trying to put text as an even semicircle onto another previously uploaded image.
I would like the option of using different fonts and sizes. Can this be done with php? :banghead:
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: How do you arc text using the gd library? Is it possible?

Post by onion2k »

Yes, it's possible, just not with the built-in functions. I've written some code to do this sort of thing before - http://www.phpgd.com/scripts.php?section=7 - there are a few scripts there that should point you in the right direction.
bobinindia
Forum Newbie
Posts: 3
Joined: Sat Mar 01, 2008 12:08 am

Re: How do you arc text using the gd library? Is it possible?

Post by bobinindia »

Thanks onion2k.
That was exactly what i was looking for!
:D
bobinindia
Forum Newbie
Posts: 3
Joined: Sat Mar 01, 2008 12:08 am

Re: How do you arc text using the gd library? Is it possible?

Post by bobinindia »

Hi onion2k,
How about a semi- circle?
Thanks again.
I have bookmarked your site.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: How do you arc text using the gd library? Is it possible?

Post by onion2k »

You just need to modify the script that does circles. I'm not going to do that for you though.
Post Reply