Use Specified Font in php

by Mohan 2012-09-17 14:03:08



<h2>

Use Specified Font in php
</h2>


<?php
header("Content-type: image/gif");

$image = imagecreate( 400, 200 );
$red = imagecolorallocate($image, 255,0,0);
$blue = imagecolorallocate($image, 0,0,255 );
$font = "ARIALBD.TTF";
imageTTFtext( $image, 50, 0, 20, 100, $blue, $font, "www.java2s.com" );
imagegif($image);
?>
753
like
0
dislike
0
mail
flag

You must LOGIN to add comments