"imageloadfont" problem
| From: | Simon Ng | Date: | Wed, 16 Feb 2000 14:38:48 +0000 |
| Subject: | "imageloadfont" problem | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-15560@lists.php.net to get a copy of this message | ||
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,