icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » PHP-GD difference in font rendering, CentOS/Debian

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old May 20th, 2008, 8:19 AM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in May 2008
3 posts
Gave thanks: 0
Thanked 0 times
PHP-GD difference in font rendering, CentOS/Debian

Hello,

I've got a website on which I'm rendering text in images via imagettftext(); I'm using the fonts I've uploaded myself in the same directory, this works on surpass servers, however.. I'm working on a little server at home for local testing. I first installed Debian Etch on it, with VirtualMin.. and the text looks totally different than on Surpass' servers.

Also when I try installing CentOS, it looks the same as on Surpass (they use CentOS as well I believe?). But I'd rather run Debian Etch, so I was wondering if anybody knew if I need to configure something special?

Here's an example of what I mean :

NaniNavi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 20th, 2008, 10:39 AM   #2 (permalink)
URB4N 5K1LLZ
Super #1
 
Roxy's Avatar
 
Joined in Sep 2005
Lives in Orlando, FL
Hosted on SH63
2,653 posts
Gave thanks: 81
Thanked 128 times
By any chance do you have styles set for the text? I'm not 100% sure why it would do this as I've never worked on either or of the CentOS or Debian Etch, but from what I know with HTML and CSS it looks to be a line height and word spacing issue. Not sure if this accounts to this though.

Hopefully someone who does work with this can have a better answer. =)
__________________
Roxanne


Urban Roxy -Personal Blog
SH63 - the best darn shared server!
Roxy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 20th, 2008, 12:10 PM   #3 (permalink)
Registered User
Fresh Surpasser
 
Joined in May 2008
3 posts
Gave thanks: 0
Thanked 0 times
No it's all rendered with imagettftext(); (PHP: imagettftext - Manual), so no need for HTML/CSS. Thanks anyway
NaniNavi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 20th, 2008, 11:23 PM   #4 (permalink)
He shoots.. He scores!
Super #1
 
puckchaser's Avatar
 
Joined in Feb 2007
Lives in A room with no windows.
Hosted on SH110
1,424 posts
Gave thanks: 43
Thanked 137 times
Is everything the same on your debian install? PHP version, GD libraries, Apache?
__________________
SH110
puckchaser is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On