Senin, 04 Januari 2010

PHP : FONT

header ("Content-type: image/png");

$im = ImageCreate (300, 40);
$grey = ImageColorAllocate ($im, 230, 230, 230);
$hitam = ImageColorAllocate ($im, 0, 0, 0);

/* ImageTTFText($im, 20, 0, 10, 25, $hitam, "ARIALBD.TTF", "Pemrograman PHP")."
.";
ImageTTFText($im, 20, 0, 10, 25, $hitam, "TIMES.TTF", "Pemrograman PHP");
ImageTTFText($im, 20, 0, 10, 25, $hitam, "GEORGIA.TTF", "Pemrograman PHP");
ImageTTFText($im, 20, 0, 10, 25, $hitam, "comic.TTF", "Pemrograman PHP");
ImageTTFText($im, 20, 0, 10, 25, $hitam, "COUR.TTF", "Pemrograman PHP");
ImageTTFText($im, 20, 0, 10, 25, $hitam, "lsans.TTF", "Pemrograman PHP");
ImageTTFText($im, 20, 0, 10, 25, $hitam, "TAHOMA.TTF", "Pemrograman PHP");
ImageTTFText($im, 20, 0, 10, 25, $hitam, "TREBUC.TTF", "Pemrograman PHP");
ImageTTFText($im, 20, 0, 10, 25, $hitam, "VERDANA.TTF", "Pemrograman PHP");
*/
ImageTTFText($im, 20, 0, 10, 25, $hitam, "MTCORSVA.TTF", "Tips Pemrograman PHP");

Imagepng ($im);
ImageDestroy ($im);
?>

Tidak ada komentar: