Forum Moderators: coopster

Message Too Old, No Replies

Fonts Issue

Not being able to use fonts on -nix box

         

trebian

10:05 pm on Apr 27, 2004 (gmt 0)

10+ Year Member



BASIC:
Apache 1.3.29
PHP 4.3.4
MySQL 3.x
GD Enabled:Yes
IBM F-40
AIX 5.1
------------------
Some PHP copiled options:

Configure Command './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-mysql' '--with-zlib' '--with-ttf' '--with-freetype=/usr/local/include/freetype' '--with-gd' '--with-pic' '--with-png' '--with-xml' '--enable-debugger'

gd
GD Support enabled
GD Version bundled (2.0.15 compatible)
FreeType Support enabled
FreeType Linkage with TTF library
GIF Read Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
--------------------
ISSUE:

My issue is with fonts. I have to comment out all the fonts references (I am using it with jpgraph) to get the script to work. None of the fonts work, even though my unix admin has compiled and installed, etc, checked permissions...we are stumped.

Any one has any idea, maybe something we did not do with Apache, or PHP? Any ideas?

Best wishes,

RS
----

coopster

5:36 pm on Apr 29, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, trebian!

Are you getting any output from your script? If so, what, if any, error messages do you receive?

trebian

8:41 pm on Apr 29, 2004 (gmt 0)

10+ Year Member



Dear Coop, thank you. I get a response from the jpgraph an OO class of PHP that
"too small area, (60,30,111252,90 : 460 -11140) increase plot size...)" --jpgraph specific error

I can easily use the bitmap fonts and they look great.
I have checked many times the TTF absolute path's accuracy, and even defined it in my php script with a DEFINE statement...

It is very odd.

Thank you for taking the time coop. Any suggestion is deeply appreciated!

tre

PS: Unrelated: I am a beginner in PHP, and running into issues of array assignment. Can you recommend a good book?

coopster

9:47 pm on Apr 29, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I was going to recommend the jpgraph forum, but I see you have already been posting in there :)

I don't have much more to offer except that perhaps you could try reinstalling the TTF libraries. Otherwise, as you stated, you'll have to troubleshoot back through the code from the point of error.

As far as gaining knowledge, a project like the one you are undertaking is going to pay large rewards, although not without some struggles. Just hang in there and take the issues one at a time. In the meantime, there are a few good threads here on PHP books and tutorials as well as recommendations. A quick search of this site should turn up plenty of suggestions.

trebian

10:08 pm on Apr 29, 2004 (gmt 0)

10+ Year Member



Thank you for taking the time. Yes I have been posting in the jp forum, and I have a feeling if I do not stop, Johan (creator) may send his goons :)

I feel really stupid, but I suppose learning curve!

Thx again.

tre