Yep i solved it.

As two nice people suggested - i upgraded php from 4.06 to 4.11 and then it
just works.

One might think that this should be documented somewhere - it would have
saved me some couple of hours.

A big thanX to all involved.
--

Michel Laine




Michel Laine wrote:

> ok
> Now i (obviously) are in unknown territoies...
>
> ***
>
> Using PHPDEV4 from http://www.firepages.com.au/dev4.htm on a NT4.0 SP4.
> The package contains PHP4.06 / Apache1.3.20 / ActivePerl5.6 / MySQL3.23
> Apache, php, mysql and perl works.
>
> phpinfo(INFO_MODULES); reports:
> 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
>
> I have even double checked php.ini
>
> ***
>
> GD works as i can drav stuff (rectangles, imagetext and so on) but *how*
> or *why* can't i get GD to load .ttf files with imagettftext?
> I get 'Could not find/open font in c:\phpdev\www\graph.htm' no matter
> how i construct the path to my fontfile.
> Tried different fontfiles and even downloaded some that comes with tut's
> - with the same result.
> My fontfile is currently in the same dir as the script itself - not even
> that will work.
>
> Is there any known bug in GD 2.x related to the support of TTF files?
> or is it just me that have tested 99 combinations on the
> path-to-fontfile parameter, but forgotten about the 100'th?
> --
>
> Michel Laine


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to