View unanswered posts | View active topics It is currently Wed May 08, 2024 4:23 pm



Reply to topic  [ 4 posts ] 
Trying to use pChart 
Author Message
New pChart user
New pChart user

Joined: Fri Apr 01, 2011 11:34 pm
Posts: 2
Post Trying to use pChart
Hi every:
I'm trying to use pChart in one of my applications but I'm getting this error when try to get the chart:
Quote:
Warning: imagettfbbox() [function.imagettfbbox]: Invalid font filename in D:\Webserver\htdocs\libnew\include\pChart\class\pImage.class.php on line 184
I take the code from samples and just made changes in a few lines to see if works or not. Any help? Cheers and thanks in advance


Fri Apr 01, 2011 11:37 pm
Profile
Experienced pChart user
Experienced pChart user

Joined: Thu Dec 02, 2010 3:03 pm
Posts: 36
Location: Somerville, MA, USA
Post Re: Trying to use pChart
reynierpm wrote:
Hi every:
I'm trying to use pChart in one of my applications but I'm getting this error when try to get the chart:
Quote:
Warning: imagettfbbox() [function.imagettfbbox]: Invalid font filename in D:\Webserver\htdocs\libnew\include\pChart\class\pImage.class.php on line 184
I take the code from samples and just made changes in a few lines to see if works or not. Any help? Cheers and thanks in advance


You're using invalid font filename. Try this: D:\Webserver\htdocs\libnew\include\pChart\fonts\Forgotte.ttf, of course, if you have there a font file.

_________________
Image


Sat Apr 02, 2011 12:00 am
Profile WWW
New pChart user
New pChart user

Joined: Fri Apr 01, 2011 11:34 pm
Posts: 2
Post Re: Trying to use pChart
Hi and thanks for your fast reply. Now your answer works but only in my local development server wich is under Windows but when I move the application to hosting then I'll need to change whatever fonts are used and I don't want that so any other chance or way to do this?

Cheers


Sat Apr 02, 2011 12:05 am
Profile
Experienced pChart user
Experienced pChart user

Joined: Thu Dec 02, 2010 3:03 pm
Posts: 36
Location: Somerville, MA, USA
Post Re: Trying to use pChart
reynierpm wrote:
Hi and thanks for your fast reply. Now your answer works but only in my local development server wich is under Windows but when I move the application to hosting then I'll need to change whatever fonts are used and I don't want that so any other chance or way to do this?


Ok, so now, you should use a relative path to font file. Read about it in wiki.

_________________
Image


Sat Apr 02, 2011 1:15 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 25 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

Search for:
Jump to:  
cron