Page 1 of 1
Generate transparent PNG with Text
Posted: Mon Mar 15, 2010 11:41 am
by M*A*S*H 4077
Hello!
How can I generate a transparent PNG with white text and a custom font without using Flash please?
I want to be able to let people add items to the menu and these are written with a special font, not websafe, and PNG files.
Thank you!
Re: Generate transparent PNG with Text
Posted: Mon Mar 15, 2010 12:23 pm
by StathisG
You can do it by using
GD Library or a similar solution. You could also consider using a solution like
Cufon for using a non-web-safe font without generating images. I never used Cufon but I think it doesn't use Flash. The most popular solution of this kind is
sIFR which uses Flash.
Re: Generate transparent PNG with Text
Posted: Tue Mar 16, 2010 10:37 am
by M*A*S*H 4077
Thanks for your reply! Good advice.
I knew about GD2 though, my question was badly formulated, what I meant was how can I do that in GD2.
I am as far as generating a png and having text in it. What I need is how to implement a custom font for that.
Re: Generate transparent PNG with Text
Posted: Thu Mar 18, 2010 8:56 pm
by StathisG
Re: Generate transparent PNG with Text
Posted: Tue Mar 23, 2010 8:26 am
by M*A*S*H 4077
Thank you!