Re: Image_Graph - missing fonts! (Pear/PHP/Apache)
| From: | Martin Johnson | Date: | Sun, 04 Jan 2004 02:05:53 +0000 |
| Subject: | Re: Image_Graph - missing fonts! (Pear/PHP/Apache) | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9946@lists.php.net to get a copy of this message | ||
Thanks Stefan, that's fixed it!
I'd been looking for system-wide settings, but the thing was staring me
in the face in the example code all the time! In both
sample_simple1.php and sample_complex1.php, there's a line near the top
that sets "fontPath". I changed this to:
$graph->setDefaultFontOptions(array("fontPath" =>
"/usr/local/share/pear/fonts/", "fontFile" => "arial.ttf",
"antiAliasing" => true, "fontSize" => 10, "color" =>
array(0,0,0) ));
I just copied "arial.ttf" into /usr/local/share/pear/fonts , and now it
works perfectly.
Many thanks,
- Martin.
On Sun, 2004-01-04 at 01:26, Stefan Neufeind wrote:
> you need any regular TTF-fonts. I used one from a w**ndows-machine -
> but unfortunately due to copyright-problems I decided to not include
> the font in the release. So please simply use a ttf-font present on
> your system or grab one from anywhere you like.
...
> On 3 Jan 2004 at 18:20, Martin Johnson wrote:
> > I've installed Image_Graph with Pear, under FreeBSD/Apache/PHP. The
> > Image_Graph examples sample_simple1.php / sample_complex1.php display
> > graphics, but no text!