Solved

imagettftext function

Posted on 2009-05-06
2
314 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 500 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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…

820 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