DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   howto: embed text with different fonts to an image (http://www.daniweb.com/forums/thread114277.html)

naju Mar 16th, 2008 10:28 pm
howto: embed text with different fonts to an image
 
i need to embed text with different fonts to an image

it will be cool if i could use the .ttf font files for writing text


Thanks in Advance

sDJh Mar 17th, 2008 2:52 pm
Re: howto: embed text with different fonts to an image
 
you can realize that with the GD-Lib (look for it at php.net). With that you can create images and write with custom fonts on it. I'm not sure if ttf is supported, but there are a lot of fonts that are. You can look for one that is very similar to the ones you prefer in ttf.

Hope that helps.

And make sure your server supports it as well (with a simple sample-script). Shouldn't be a problem normally, but it's not worth scripting the hole stuff and finding out that it doesn't work on the server afterwards.

naju Mar 17th, 2008 10:34 pm
Re: howto: embed text with different fonts to an image
 
Yes .... thanks for that information ..
i got it....

i have my own server ..n... it work very well

thank you once again


All times are GMT -4. The time now is 3:57 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC