imagettftext not displaying text

GD and GD2 are useful libraries for creating graphics on-the-fly. Discuss your PHP GD and GD2 scripts here.

Moderators: onion2k, General Moderators

Post Reply
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

imagettftext not displaying text

Post by anjanesh »

For some reason on one linux server, imagettftext is not displaying the text, yet the array is not returned as false and there are no other GD errors. Font filelocation exists and I tested the same code on different linux servers and it works.

Any idea what could be wrong on this server ? Some config issue ?

Thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Does the code work with other fonts? Is Freetype enabled? Is GD up to date?
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Code doesnt work with any other fonts.
I just tested by giving the wrong location of the font and the script gave an error saying font not found. So font-location doesnt seem to be the problem.

On this server, php was compiled with the 5.1.4 version, gd & FreeType are enabled.

Code: Select all

GD Support 	enabled
GD Version 	bundled (2.0.28 compatible)
FreeType Support 	enabled
FreeType Linkage 	with TTF library
FreeType Version 	1.4
GIF Read Support 	enabled
GIF Create Support 	enabled
PNG Support 	enabled
WBMP Support 	enabled
XBM Support 	enabled
Post Reply