IMAGEPNG() Fonts...
Posted: Mon Feb 28, 2005 4:15 pm
Is there way to change the font on a imagecreate tag?
How can i change the text to... erm.. Tahoma... or Verdana... or Arial...
Code: Select all
<?
header ("Content-type: image/png");
$im = imagecreate(450,73);
$black = imagecolorallocate ($im,0x00, 0x00, 0x00);
$white = imagecolorallocate ($im,0xFF, 0xFF, 0xFF);
imagefilledrectangle($im, 0, 0, 450, 73, $black);
imagestring ($im, 3, 3, 3, "Pe Po", $white);
imagepng ($im);
imagedestroy ($im);
?>