Page 2 of 2

Posted: Wed Oct 29, 2003 12:13 pm
by vigge89
ok, thanks :D

Posted: Thu Oct 30, 2003 4:26 pm
by vigge89
now ive got a question:
when running a image-creation script on my host, it says that the function imagettfbbox() isn't defined.

What should my host do to add that function? He have already installed the GD Library and Freetype2, but is there anything else?

Posted: Thu Oct 30, 2003 6:42 pm
by volka
php/the extension must be compiled with support for those libraries
http://php.net/image wrote:Table 4. Supported font libraries
Font library Configure Switch
FreeType 1.x To enable support for FreeType 1.x add --with-ttf[=DIR].
FreeType 2 To enable support for FreeType 2 add --with-freetype-dir=DIR.
T1lib To enable support for T1lib (Type 1 fonts) add --with-t1lib[=DIR].
Native TrueType string function To enable support for native TrueType string function add --enable-gd-native-ttf.

Posted: Fri Oct 31, 2003 5:34 pm
by vigge89
i have no idea on what you mean, and neither does my host?

Posted: Fri Oct 31, 2003 10:40 pm
by volka
wether the extension exposes the function or not depends on how it was compiled. Either it was compiled with one of the option listed above or not.
Precompiled extension modules of all flavors can be found for almost all OSs.

Posted: Sat Nov 01, 2003 4:26 am
by vigge89
so you mean that he need to compile PHP with all the libraries you mentioned before?

Posted: Mon Nov 03, 2003 12:45 pm
by vigge89
how do u do that?
my host uses Apache Server in Windows, could someone tell me how he should do to make the function imagettfbbox() to work?

since im not familiar with webservers, i dont know how to do.

Posted: Tue Nov 04, 2003 10:23 am
by vigge89
edited the title...

Posted: Fri Nov 07, 2003 11:30 am
by vigge89
so, if I want to be able to use the function imageftbbox(), what should be added into the PHP.ini file then?