PHP Classes

fonts

Recommend this page to a friend!

      Graph Drawing Class 2  >  All threads  >  fonts  >  (Un) Subscribe thread alerts  
Subject:fonts
Summary:Im having trouble getting the font files to open
Messages:4
Author:Chris Bricker
Date:2006-02-08 23:01:15
Update:2009-05-15 15:16:45
 

  1. fonts   Reply   Report abuse  
Picture of Chris Bricker Chris Bricker - 2006-02-08 23:01:15
Im having trouble getting the font files to open. I set them as chmod777, used the complete path, etc and still no luck. Any ideas?

  2. Re: fonts   Reply   Report abuse  
Picture of Chris Bricker Chris Bricker - 2006-02-09 04:23:19 - In reply to message 1 from Chris Bricker
Fixed it:

To test your package I set the path_to_fonts to ''
and used realpath("fontname.ttf") to get the full path

  3. Re: fonts   Reply   Report abuse  
Picture of Denis McFadden Denis McFadden - 2008-01-21 10:32:15 - In reply to message 1 from Chris Bricker
I had the same trouble but found if I copied the '.ttf' fonts from a windows machine to the '/etc/fonts/' directory and then used that as the path it worked OK.

Had a small problem with the case ... windows not 'case-sensitive' Ubuntu was 'case-sensitive'. Couldn't find 'times.TTF' but found 'times.ttf' no bother. :-)

Don't know what the legalities are doing this but there are plenty of places on the web where you can download free fonts to use.

Hope this is of some help.

  4. Re: fonts   Reply   Report abuse  
Picture of Dave Treece Dave Treece - 2009-05-15 15:16:45 - In reply to message 1 from Chris Bricker
I had to modify the graph.php class and change the ARIALBD.TTF and ARIAL.TTF to lowercase. Worked fined after that.