2010-10-18, 01:45 AM
2010-10-18, 01:52 AM
Your gonna have to explain a lot more.
2010-10-18, 01:53 AM
like I say Antialias("Hello world!","Arial",10), it will generate Hello world in Arial font 10, anti-aliased.
2010-10-18, 04:33 AM
just attach some CSS?
2010-10-18, 07:37 PM
<?php
header('content-type: image/png');
$im = imagecreatetruecolor(800,600);
// Important stuff
// Allocate a transparent background color
$bg = imagecolorallocatealpha($im,255,0,0,127);
// ..and a non-transparent text color
$text = imagecolorallocate($im,0,0,0);
// Turn on full alpha channel saving for PNG images
imagesavealpha($im,true);
// Fill with transparent and text with the other
imagefill($im,0,0,$bg);
imagettftext($im,40,0,50,50,$text,'C:\Windows\Fonts\arial.ttf','S58G');
imagepng($im);
?>
thats a direct file itself (say name.png)
credit: http://www.webmaster-talk.com/php-forum/...asing.html
how you use it is up to you, but like lyndon said, css. it'd be simpler and give you a better end result in my opinion. hence why i wont go any further then posting the image creation code itself
2010-10-18, 10:29 PM
If you use imgttftext and the proper arial font, it should be anti-aliased anyways.