473,804 Members | 2,931 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Image_Graph and Freetype support

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
2 2821
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*******@attgl obal.net
=============== ===
May 29 '07 #2
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1861
by: awaegel | last post by:
Hello, I've been running php/apache/etc locally on my powerbook for a long time, but am having problems activating freetype with a new version of php. I'm using: php 4.4.0 freetype 2.1.10 (compiled from source) gd 2.0.28 (came with php)
0
1266
by: p | last post by:
Hi, I've been writing text onto images using imagettftext, having first loaded an Arial TTF. The result can be seen at http://linuxbox.co.uk/57_off.png After moving the code to another server, the text started coming out differently: http://linuxbox.co.uk/65_off.png Examing phpinfo() for each server, it seems the original server had:
1
1728
by: francescomoi | last post by:
Hi. I compiled PHP by using: -------------- './configure' '--prefix=/usr/local/php' '--with-apxs2=/usr/local/httpd/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-curl=/usr/local/include/curl' '--with-gd=/usr/local/gd' '--with-zlib-dir=/usr/local/zlib' '-with-jpeg-dir=/usr/local/jpeg-6b' '--with-ttf=/usr/include/freetype2'
5
3043
by: Shawn Hamzee | last post by:
Hello All, I am having a problem with Image_Graph on php 5.1.4. I installed the package and all of its dependencies through pear installer without any hitches. Then I started to add some very simple code to create a graph in an existing php page. I added the code for the graph and added the elements of it plus some static data. However, when I browse the page, I get garbled data instead of the graph. Has anyone ever run into this...
7
2729
by: Glich | last post by:
Hi, where can I download freetype (>= 2.1.7)? I need it to use matplotlib. I have search a lot but still can not find it. Thanks!
0
1186
by: Lorenzo Thurman | last post by:
How do I tell Image_Graph(or Freetype) where to look for fonts? They were installed under /usr/local/, but I still get an error when calling a font. I can hard code the path to the font, so it looks like things are working, but I should be able to call the font by name instead of having to code its path. TIA
0
1351
by: Lorenzo Thurman | last post by:
I didn't get any replies the first time, so I'm trying again: How do I tell Image_Graph(or Freetype) where to look for fonts? They were installed under /usr/local/, but I still get an error when calling a font. I can hard code the path to the font, so it looks like things are working, but I should be able to call the font by name instead of having to code its path. TIA
0
4225
by: luckyG | last post by:
I have php (5.2.4) compiled on redhat 4.0 as followed : ./configure \ --with-oci8=$ORACLE_HOME --with-apxs=/usr/local/apache/bin/apxs \ --with-config-file-path=/usr/local/apache/conf \ --enable-sigchild \ --with-gd \ --with-ttf=/usr/include/freetype2 \ --with-freetype-dir=/usr/include/freetype2 \ --with-gd-native-ttf \
3
3072
by: goldreads | last post by:
Hey guys, I've been putting together a line graph in Image_Graph. And I can't seem to find an answer to change the layout of few things. Here is my graph: http://www.goldreads.com/test.png 1) I'm trying to bold the line. 2) I would also like to make the title bold... 3) I want to include a text inside the graph in the right corner
0
9577
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10569
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10325
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10315
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10075
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9140
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4295
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.