mam problem z funkcją imagettftext na PHP 5.3.8, przykładowy kod (z manuala + lekkie zmiany) wygląda tak:
<?php // Set the content-type // Create the image $im = imagecreatetruecolor(600, 90); // Create some colors $black = imagecolorallocate($im, 0, 0, 0); $white = imagecolorallocate($im, 255, 255, 255); $green = imagecolorallocate($im, 0, 255, 0); imagefilledrectangle($im, 0, 0, 599, 89, $green); // The text to draw $text = 'Testing...'; // Replace path by your own font path $font = 'visitor_tt1_brk.ttf'; // Add some shadow to the text imagettftext($im, 8, 0, 11, 51, $black, $font, $text); // Add the text imagettftext($im, 8, 0, 10, 50, $white, $font, $text); // Using imagepng() results in clearer text compared with imagejpeg() imagepng($im); imagedestroy($im); ?>
Efekt użycia na PHP 5.2.17:

A tu na 5.3.8:

Jak widać, jest "drobna" różnica pomimo takiego samego kodu. Wersja GD jest ta sama (2.0.34), jednie bibioteka FreeType ma inną wersję.
Na PHP 5.3.8 - 2.4.2
Na PHP 5.2.17 - 2.2.1
Czy to może wynikać z innej wersji FreeType, czy zależy od czegoś zupełnie innego?
Aha, dodam jeszcze, że przy czcionce o np. rozmiarze 40, różnica jest już bardzo słabo widoczna.