Hi,
I was wondering, I'm trying to load a font (macropsi.ttf), but PHP claims it can't find it in the same directory, while it's absolutely there, now using the script below, I get these errors:
Warning: Could not find/open font in ...temp.php on line 6
Warning: imagepng: unable to open 'pic.png' for writing in ...temp.php on line 7
This is the test:
<?php
$im = imagecreate (50, 250);
$bgcolor = ImageColorAllocate ($im, 0x77, 0x77, 0x77);
$font = ImageColorAllocate ($im, 0x00, 0x00, 0x00);
ImageTTFText ($im, 35, 90, 40, 230, $font, "macropsi.ttf", "blablabla");
Imagepng ($im, "pic.png");
ImageDestroy ($im);
echo "<html><body><img src=\"pic.png\" border=0></body></html>";
?>
What am I doing wrong here?
Thanks in advance!