AW: imageTTFtext Schrift glätten?
Der Quellcode:
<?php
$im = @imageCreate(68, 25)
or die ("Kann keinen neuen GD-Bild-Stream erzeugen");
$farbe_body=imageColorAllocate($im,255, 255, 255);
$font_c = imageColorAllocate($im,0,0,0);
imageTTFtext($im, 11, 0, 0, 20, $font_c, "fonts/ANTQUAB.TTF", "text1");
$font_b = imageColorAllocate($im,255,0,0);
imageTTFtext($im, 22, 0, 24, 20, $font_b, "fonts/BRADHITC.TTF", "text2");
imageTTFtext($im, 11, 0, 42, 20, $font_c, "fonts/ANTQUAB.TTF", "text3");
header("Content-type: image/png");
imagepng($im);
imagedestroy($im);
?>
Die Schrift musste ich so klein setzten, damit sich das Bild textlich an die übrige Schrift anpasst. Ist aber eben leider sehr unscharf.
|