freetype issue

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fxchain
Forum Newbie
Posts: 9
Joined: Tue Dec 09, 2003 12:05 pm

freetype issue

Post 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
Post Reply