mam problem z tą funkcją z biblioteki GD, gdy generuje napis z czcionką Monotype Corsiva to litery czasami się nakładają na siebie (tzn. tło z litery następnej zasłania poprzednią, a że jest ono (to tło) niewidoczne to tak jak by usuwa kawałek poprzedniej literki), tu możecie zobaczyć co mam na myśli:
http://bio-relax.com.pl/images_podstrony/header_16_pl.png
http://bio-relax.com.pl/images_podstrony/header_12_pl.png
http://bio-relax.com.pl/images_podstrony/header_13_pl.png
kod wygląda tak:
<?php // Create the image $im = imagecreatetruecolor($text_width, $mnoznik_height*$text_height); imagealphablending($im, false); // Create some colors $white = imagecolorallocate($im, 255, 255, 255); $tlo = imagecolorallocatealpha($im, 255, 255, 255, 127); $text_color = imagecolorallocate($im, $color['r'], $color['g'], $color['b']); imagefilledrectangle($im, 0, 0, $text_width, $mnoznik_height*$text_height, $tlo); // Add the text imagettftext($im, $size, $angle, 0, $text_height, $text_color, $font, $text); // Using imagepng() results in clearer text compared with imagejpeg() @imagesavealpha($im, true); @imagepng($im, $dir.$name.'.png'); @imagedestroy($im); ?>
Czy jest jakiś sposób żeby wyeliminować te artefakty?