View unanswered posts | View active topics It is currently Wed May 29, 2024 6:13 pm



Reply to topic  [ 2 posts ] 
Invalid font filename 
Author Message
New pChart user
New pChart user

Joined: Fri Apr 27, 2012 1:24 am
Posts: 3
Post 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
Profile
New pChart user
New pChart user

Joined: Fri Apr 27, 2012 1:24 am
Posts: 3
Post 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
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
cron