PDA

View Full Version : GD question


mouse
08-29-2002, 03:25 PM
I want to use a font called Trancemission and overlay it on an image.
Where do I put the font on my server in order to do this? does it need to be installed as you would on a home computer or what?

Ökii
08-29-2002, 09:22 PM
Assuming the font is truetype - ie *.ttf

You'll need freetype as a php module - available from freetype.org if you need it.

Then it's as simple as uploading the font to a known folder on your domain and addressing it from within the script

ImageTTFText($myimage,16,0,5,5,$red,'../fonts/trancemission.ttf','your text here');