[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft] PHP imagettftext: Bad character spacing / anti-aliasing
From: |
André Hänsel |
Subject: |
[ft] PHP imagettftext: Bad character spacing / anti-aliasing |
Date: |
Thu, 7 Aug 2008 22:22:59 +0200 |
Hi list,
I'm experiencing very bad character spacing / anti-aliasing with a PHP
installation. I compared it to another installation where it works.
I'm using the following test code:
$ih = imagecreatetruecolor(200,100);
$ch_white = ImageColorAllocate($ih, 255,255,255);
imagettftext($ih,8,0,10,21,$ch_white,'arialbd.ttf','REFERENZENXXX');
header('Content-Type: image/gif');
imagegif($ih);
The bad one with its phpinfo()-Output (in the real application it looks
really bad):
http://kundenweb.creations.de/usenet/ttftext/bad.gif
GD Support: enabled
GD Version: 2.0 or higher
FreeType Support: enabled
FreeType Linkage: with freetype
FreeType Version: 2.2.1
T1Lib Support: enabled
GIF Read Support: enabled
GIF Create Support: enabled
JPG Support: enabled
PNG Support: enabled
WBMP Support: enabled
And the good one:
http://kundenweb.creations.de/usenet/ttftext/good.gif
GD Support: enabled
GD Version: bundled (2.0.34 compatible)
FreeType Support: enabled
FreeType Linkage: with freetype
FreeType Version: 2.1.9
T1Lib Support: enabled
GIF Read Support: enabled
GIF Create Support: enabled
JPG Support: enabled
PNG Support: enabled
WBMP Support: enabled
XBM Support: enabled
Which version causes this difference? When was the change?
Regards,
André
- [ft] PHP imagettftext: Bad character spacing / anti-aliasing,
André Hänsel <=