Use a specific font

This example shows how to use a specific font.


<?php
header("Content-type: image/gif");
$image = imagecreate( 500, 250 );
$blue = imagecolorallocate($image, 0,0,255 );
$font = "ARIALBD.TTF";
imageTTFtext( $image, 50, 0, 20, 100, $blue, $font, www.getphp.net );
imagegif($image);
?>

LEAVE A REPLY

Please enter your comment!
Please enter your name here

*