True Type Fonts in PHP!

<?php
header
(“Content-type: image/png”);

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

ImageTTFText($im, 20, 0, 10, 25, $black, “CORBEL.TTF”, “TrueType Fonts!”);
ImagePng ($im);
ImageDestroy ($im);
?>

  • Share/Bookmark

Tags: , , , , , , , , , , , , , ,

Leave a Reply