hello,all:

I have already installed gd-1.8.4 in php-4.1.2 with some libraries,such as libpng 
-1.2.0,freetype-1.3,zlib-1.1.4,freetype2,in my apache server which version is 
1.3.24,and "phpinfo()" display php can support such soft,as follow:
GD Support---------------------------enabled
GD Version---------------------------1.6.2 or higher
FreeType Support---------------------enabled
FreeType Linkage---------------------with freetype
JPG Support--------------------------enabled
PNG Support--------------------------enabled
WBMP Support-------------------------enabled

But when I used the function related with ttf,like ImageTTFText or ImageTTFBox,I found 
it useless,in other words,no pictures were displayed in my IE.
I don't understand why,is gd-1.8.4 can not support these functions?

ps:my test code
<?
//define the type of inputting picture;
Heder("content-type:image/png");
//create picture
$pic=imagecreate(240,30);
//define color
$black=imagecolorallocate($pic,0,0,0);
$white=imagecolorallocate($pic,255,255,255);
//define font copied from windows2000
$font="fonts/simhei.ttf";
//define characters to output
$str = 
chr(0xE8).chr(0xB5).chr(0x9B).chr(0xE8).chr(0xBF).chr(0xAA).chr(0xE7).chr(0xBD).chr(0
x91)." www.ccidnet.com";
//write ttf in picture
imageTTFText($pic,20,0,10,20,$white,$font,$str);
//create png picture
imagepng($pic);
//release the memory occupied by the picture
imagedestroy($pic);
?>

Can anybody give a reply?

Thank you
                                                                        zhaoxd
                                                                                


Reply via email to