| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#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 : ![]() |
|
|
|
|
|
#2 (permalink) |
|
URB4N 5K1LLZ
Super #1
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. =) |
|
|
|
|
|
#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
![]() |
|
|
|