By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,972 Members | 1,092 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,972 IT Pros & Developers. It's quick & easy.

Image_Graph and Freetype support

P: n/a
I keep getting this error when trying to use fonts with Image_Graph:

[29-May-2007 08:35:53] PHP Fatal error: Call to undefined function:
imagettfbbox() in /usr/local/lib/php/Image/Canvas/GD.php on line 1240

After Googling the error, it seems that I was missing Freetype support.
I've installed Freetype and rebuilt PHP with Freetype support, but I
still get the same error. I look at the output from phpinfo() and I see
that PHP was compiled with this switch:
--with-freetype-dir=/usr/local/lib'

But I don't see anymore references to Freetype in the phpinfo output.
Shouldn't there be more references to Freetype? Am I missing something else?
Please help TIA
May 29 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Lorenzo Thurman wrote:
I keep getting this error when trying to use fonts with Image_Graph:

[29-May-2007 08:35:53] PHP Fatal error: Call to undefined function:
imagettfbbox() in /usr/local/lib/php/Image/Canvas/GD.php on line 1240

After Googling the error, it seems that I was missing Freetype support.
I've installed Freetype and rebuilt PHP with Freetype support, but I
still get the same error. I look at the output from phpinfo() and I see
that PHP was compiled with this switch:
--with-freetype-dir=/usr/local/lib'

But I don't see anymore references to Freetype in the phpinfo output.
Shouldn't there be more references to Freetype? Am I missing something
else?
Please help TIA
You should see it in the "gd" section, things like:

FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
May 29 '07 #2

P: n/a
Jerry Stuckle wrote:
Lorenzo Thurman wrote:
>I keep getting this error when trying to use fonts with Image_Graph:

[29-May-2007 08:35:53] PHP Fatal error: Call to undefined function:
imagettfbbox() in /usr/local/lib/php/Image/Canvas/GD.php on line 1240

After Googling the error, it seems that I was missing Freetype
support. I've installed Freetype and rebuilt PHP with Freetype
support, but I still get the same error. I look at the output from
phpinfo() and I see that PHP was compiled with this switch:
--with-freetype-dir=/usr/local/lib'

But I don't see anymore references to Freetype in the phpinfo output.
Shouldn't there be more references to Freetype? Am I missing something
else?
Please help TIA

You should see it in the "gd" section, things like:

FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
Thanks, we'll try this one more time.
May 29 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.