Set Font size : Image Font : Graphics Image PHP Source Code


PHP Source Code » Graphics Image » Image Font »

 

Set Font size



<?php
$textImage = imagecreate(200,100);
$white = imagecolorallocate($textImage, 255255255);
$black = imagecolorallocate($textImage, 000);
$yOffset = 0;
for ($i = 1; $i <=5; $i++) {
 imagestring($textImage, $i, 5, $yOffset, "www.navioo.com $i", $black);
 $yOffset += imagefontheight($i);
}
header("Content-type: image/png");
imagepng($textImage);
imagedestroy($textImage);
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Graphics Image
» Image Font