Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JpGraph Question

Status
Not open for further replies.

boab

Programmer
Joined
May 30, 2001
Messages
75
Location
GB
Guys I am really stuck hope some one can help. JpGraph seems to be working fine except in the use of truetype fonts the message which I am getting is:

There is either a configuration problem with truetype or a problem reading font file(C:\Windows\Fonts\arial.ttf).


I've tried hard coding the path variable in the TTF Class result : Nada

I've checked the gd and freetype settings in phpinfo() and get:-

GD Support - enabled
GD Version - 2.0 or Higher
FreeType Support- enabled
FreeType Linkage - with FreeType
JPG Support - enabled
PNG Support - enabled
WBMP Support - enabled

In other words it should work,

And I've checked the baseDir result

open_basedir Local and master Value - no value

I should say that i'm running PHP 4.2.3/Apache on a Windows platform that being said PHP is a windows binary and I am unsure of how to check for the Freetype Version or how to include it in a binary. This is the only thing that doesn't seem to work. Any help gratefully recieved.

THe Start of wisdom is to realise you know nothing. I'll be a genius then!
 
but is it looking for arial.ttf and not finding it beacause the font is called Arial.ttf .. case sensitivity can be an issue even with windaz.

copy the font file into the directory and reference it explicitly, to see if you hae better results.

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Never though of that I've tried it but to no effect. I'm starting to think it may be something to do with a freetype Whihc I am unsure of checking as I am on windows and have no dev/compiling applications other than Dreamweaver for web code.

THe Start of wisdom is to realise you know nothing. I'll be a genius then!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top