[PHP-DEV] "imageloadfont" problem From: Simon Ng (simonng <email protected>)
Date: 02/16/00

I have a problem in get the Type 1 font work on php,
I just install the t1lib 0.9.2 and gd1.7.3 and php3.0.14-
6 on a RedHat system
But it seem not work for find the Type 1 fonts on the
php images
It show a message " Warning : Couldn`t find the font file
in /www/myfile/images/images.php3"

and "Warning: Cannot add more header information -
the header was already sent (header information may
be added only before any output is generated from the
script - check for text or whitespace outside PHP tags,
or calls to functions that output text"

The script is wrote on below:
<?
$png = ImageCreate(400,200);
$bg = ImageColorAllocate($png,255,255,255);
$tx = ImageColorAllocate($png,125,125,255);

$font1 = ImagePSLoadFont
("/usr/share/fonts/default/Type1/n0190031.pfd");
ImageString($png,$font1,0,0,"Home",$tx);

imageinterlace($png,1);
// send the image
header("content-type: image/gif");
ImagePng($png);
?>

If your found a problem on installation or config on it ,
please feel free to let me know.

Thank you,

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>