Page 1 of 1

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

Posted: Sat Mar 01, 2008 12:14 am
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:

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

Posted: Sat Mar 01, 2008 5:51 am
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.

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

Posted: Sat Mar 01, 2008 11:48 am
by bobinindia
Thanks onion2k.
That was exactly what i was looking for!
:D

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

Posted: Sat Mar 01, 2008 3:09 pm
by bobinindia
Hi onion2k,
How about a semi- circle?
Thanks again.
I have bookmarked your site.

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

Posted: Tue Mar 04, 2008 6:52 am
by onion2k
You just need to modify the script that does circles. I'm not going to do that for you though.