Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

imagettftext function

Posted on 2009-05-06
2
Medium Priority
?
319 Views
Last Modified: 2013-12-13
Hello, I'm trying to use imagettftext function in my script.
But it returns Call to undefined function imagettftext() .

I run phpinfo() and my PHP version is 5.2.6 on SentOS and have "--with-gd' " on cinfgure command section and on GD section it says:

GD Support  enabled  
GD Version  bundled (2.0.34 compatible)  
GIF Read Support  enabled  
GIF Create Support  enabled  
JPG Support  enabled  
PNG Support  enabled  
WBMP Support  enabled  
XPM Support  enabled  
XBM Support  enabled  

Someone sasy that I will need free-type in order to make the function work.
But I'm not expert of Linux, so I need an accurarte answer before I install something on my server.

What exactly do I need to make the function work?
Please some one adivse.
Thank you.

0
Comment
Question by:eb110k
2 Comments
 
LVL 4

Accepted Solution

by:
aconrad earned 2000 total points
ID: 24321717
http://www.php.net/manual/en/function.imagettftext.php
Note: This function requires both the GD library and the » FreeType library.

Yes, you need free-type.
0
 

Author Closing Comment

by:eb110k
ID: 31578836
Thank you for your advise.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
It’s a season to be thankful, and we’re thankful for users like you who engage on site, solve technology problems, and network with others in the industry. What tech are we most thankful for? Keep reading.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question