Problem with imageloadfont

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
caliban
Forum Newbie
Posts: 1
Joined: Thu May 22, 2003 4:09 pm

Problem with imageloadfont

Post by caliban »

I can't find how to use this function. There are no examples in the any documentations or forums. Help!

My code:
-------------------------------------------------------------------------
$im = imagecreatefrompng('picture.png');
$orange = imagecolorallocate($im, 220, 210, 60);

$font = imageloadfont('font.bmf');
imagestring($im, $font, 40, 10, 'some string', $orange);

imagepng($im);
imagedestroy($im);
-------------------------------------------------------------------------

'font.bmf' is a bitmap font that I generated. No PHP errors or warnings -- (all right?) -- and no text on the picture! Why?
Please help me, if anybody used this function...[/i]
Post Reply