Problem with imagettftext()

images php coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
User avatar
Shiv
php-forum Active User
php-forum Active User
Posts: 262
Joined: Wed Feb 02, 2005 8:06 pm
Location: Ahmedabad (Gujarat), INDIA

Wed Jul 27, 2005 5:44 am

Hi,

I am using imagettftext() function. I have gd library and free type also so its working fine.

The problem is that my client has linux server and has GD but not supported with FreeType so it give me error that call to undefined function imagettftext().

Now I want to know that is there any alternative function which provides the same facility as imagettftext() ?

I sometimes use imagestring() too but we cant give font size with it so I need help.

Thank you.

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2214
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Wed Jul 27, 2005 6:35 am

take a look at http://se2.php.net/manual/en/function.imagettftext.php
The first comment tells you what to do to solve this problem
Best Regards,
Alexej Kubarev
-------------------------------
Zend Certified Engineer
Image Image

User avatar
Shiv
php-forum Active User
php-forum Active User
Posts: 262
Joined: Wed Feb 02, 2005 8:06 pm
Location: Ahmedabad (Gujarat), INDIA

Wed Jul 27, 2005 9:01 pm

Hi,

I could not get your point. Could you plz be clear about it.

User avatar
gesf
Moderator
Moderator
Posts: 1716
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

Wed Jul 27, 2005 9:26 pm

In that manual page, the first user comment (in the comments part) can solve your problem.
Sincerely,
Gonçalo "gesf" Fontoura

gesf.org | sessionstart.com | urlms.com

User avatar
Shiv
php-forum Active User
php-forum Active User
Posts: 262
Joined: Wed Feb 02, 2005 8:06 pm
Location: Ahmedabad (Gujarat), INDIA

Wed Jul 27, 2005 9:46 pm

I tried that putenv('GDFONTPATH=' . realpath('.'));
but it didn't work. :(

User avatar
gesf
Moderator
Moderator
Posts: 1716
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

Wed Jul 27, 2005 9:53 pm

In that manual page, please check for a section called "User Contributed Notes". And there you'll find your answer :)
Sincerely,
Gonçalo "gesf" Fontoura

gesf.org | sessionstart.com | urlms.com

User avatar
Shiv
php-forum Active User
php-forum Active User
Posts: 262
Joined: Wed Feb 02, 2005 8:06 pm
Location: Ahmedabad (Gujarat), INDIA

Wed Jul 27, 2005 11:39 pm

ThanX for helping. My client make configure it on server. I need freetype linkage and it is available now. ThanX for helping. :)

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest