|
|
|
|
Page 1 of 1
|
[ 2 posts ] |
|
Author |
Message |
zhengwhizz
New pChart user
Joined: Fri Apr 27, 2012 1:24 am Posts: 3
|
Invalid font filename
when i output chinese characters, i get this warning,
Warning: imagettfbbox() [function.imagettfbbox]: Invalid font filename in D:\dev\workspace\myphp\chart\class\pImage.class.php on line 211
Warning: imagettftext() [function.imagettftext]: Invalid font filename in D:\dev\workspace\myphp\chart\class\pDraw.class.php on line 1023 ........
i'm sure the font file is correct path, and the php file is utf8 encode, i even convert the chinese characters to ascii , but the error is still there, and i can not get the correct character in the chart.
please help me?
|
Fri Apr 27, 2012 1:42 am |
|
|
zhengwhizz
New pChart user
Joined: Fri Apr 27, 2012 1:24 am Posts: 3
|
Re: Invalid font filename
i know why, i copied the font file from the windows\fonts to the pchart\fonts directory, and the font file already in the pchart\fonts dir when i check, but maybe the fonts file has some problem, when i change the code like the : $myPicture->setFontProperties(array("FontName"=>"C:\\WINDOWS\\Fonts\\SIMKAI.TTF","FontSize"=>8)); it works, the windows fonts can not copy out ??
|
Fri Apr 27, 2012 1:51 am |
|
|
|
Page 1 of 1
|
[ 2 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 8 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|
|
|