Font path
Posted by: DivaDoll
Posted on: 2009-05-10 12:44:00
I am using a piece of PhP code that creates a dynamic image of text for user registration as spam prevention.
what is the correct font path to use if I have shared hosting account?
<?php
Header ("Content-type: image/gif");
$im = imagecreate (440, 110);
$black = ImageColorAllocate ($im, 255, 255, 255);
$white = ImageColorAllocate ($im, 76, 203, 91);
//please adjust the font path!
ImageTTFText ($im, 42, 0, 0, 50, $white, "/usr/share/fonts/truetype/msttcorefonts/parryhotter.ttf","pigflu");
ImageGif ($im);
ImageDestroy ($im);
?>