Page 1 of 1

freetype issue

Posted: Fri Jan 23, 2004 6:34 pm
by fxchain
I am having issue using Freetype.

<?php
header ("Content-type: image/png");
$im = imagecreate (400, 30);
$black = imagecolorallocate ($im, 0, 0, 0);
$white = imagecolorallocate ($im, 255, 255, 255);
imagettftext ($im, 8/81*64, 0, 10, 20, -$white, "arial.ttf", "hello");
imagepng ($im);
imagedestroy ($im);
?>

This code will not output an image in a browser but this:

‰PNG IHDR