ive found what i want but i get a error, whats the full path to the font file ive tried this but i get that error.
$font = imagepsloadfont($_SERVER['DOCUMENT_ROOT'].'/font.pfm');
Fatal error: Call to undefined function imagepsloadfont() in /home/fhlinux159/p/ps3.gavssite.com/user/htdocs/test/test.php on line 11
Full Code
<?php
// Create image handle
$im = imagecreatefrompng($_SERVER['DOCUMENT_ROOT'].'/test/test.png');
// Allocate colors
$black = imagecolorallocate($im, 0, 0, 0);
$white = imagecolorallocate($im, 255, 255, 255);
// Load the PostScript Font
$font = imagepsloadfont($_SERVER['DOCUMENT_ROOT'].'/font.pfm');
// Write the font to the image
imagepstext($im, 'Sample text is simple', $font, 12, $black, $white, 50, 50);
// Output and free memory
header('Content-type: image/png');
imagepng($im);
imagedestroy($im);
?>
im using this http://uk2.php.net/manual/en/function.imagecreatefrompng.php