I've just upgraded to PHP 4.1.0RC2 (debian - 4.0.100-1), GD2 (2.0.1), Freetype 2.0.5

I'm aware that now TTFBBox() requires an absolute path and no longer works with relative paths to the ttf-file. (don't ask me why - well, things change... pretty sad though!)

Now, when I'm using an absolute path everything works, as long as there is no space in the filename.
If I'm trying to do this it won't find the ttf-file:

$ttf_file = '/home/foo/Avalon Quest.ttf';
ImageTTFBBox(14,0,$ttf_file,'12345');

I'm getting the following error:

/home/foo/Avalon Quest.ttf
Warning: Could not find/open font in ...

I tried it also with '/home/foo/Avalon\ Quest.ttf' and '"/home/foo/Avalon Quest.ttf"'

any idea?
And has anyone got an explanation, why the messed up all those functions in GD2?

thanks
philip

    Write a Reply...