problems with postscript font generation

From: Date: Tue, 22 Apr 2003 21:19:34 +0000
Subject: problems with postscript font generation
Groups: php.general 
Request: Send a blank email to php-general+get-144908@lists.php.net to get a copy of this message
Greetings. I'm trying generate an image using a postscript font, and continue to get an error message stating that the image cannot be displayed because it contains errors .. with the $imagepstext line commented out, it runs fine, so I'm assuming that I'm doing something wrong in generating the text ... . Can anyone help? Thanks in advance. <?php $image = imagecreatefromjpeg("MLBCBK1.jpg"); header("Content-type: image/jpeg"); $black = imagecolorclosest($image, 0, 0, 0); $white = imagecolorclosest($image, 255, 255, 255); $x_extent = imagesx($image) -1; $y_extent = imagesy($image) -1; for ($i = 0; $i < 2 ; $i++) { $rect = imagerectangle($image, $i, $i, $x_extent -$i, $y_extent -$i, $black); } $fontcentbd = imagepsloadfont("/var/www/ml/CenIBB21.pfb"); $imagepstext($image, "Name Goes Here", $fontcentbd, 12, $black, $white, 25, 30); imagejpeg($image); imagedestroy($image); ?>

« previous php.general (#144908) next »