I'm generating an image out of text using php. My code works perfectly on my localhost and the text is generated fine. However on my online host it doesn't generate the whole text just bits and pieces of it. Like if I were to pass the text 'This is some text' to it - it would generate just maybe an S or t.
The code is fine as it works perfectly on my localhost but doesn't run on the online host. It cant be that gd isnt on the host else it would not even generate part of the image.
WHats going on here :(
UPDATE
This is the GD CONfig on teh server - I don't think there is anything wrong with it
gd
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
I'm just turning email addresses and fone numbers into one image. Heres an image of what the text should look like:

But this is what its rendering on the online:

UPDATE
I just found out something weird. If I try to create an image out of the text 'P P' it should create the following image which it does on my localhost.

But on the online server its creating the image as so - the space is humongous and distorted. Could this be a hint as to why is it not rendering the text as it should.

Please guys I need help here urgently :(.