GD Lib Font Loading Problem

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
millan
Forum Newbie
Posts: 3
Joined: Fri Jul 25, 2003 6:13 pm

GD Lib Font Loading Problem

Post by millan »

Hi,

I am writing a script and I need to use ttf fonts. I use imagettfbbox function. But functions return that it can't load or find font specified. The font exists (ofcourse) and no matter how I declare it it doesn't work. I put path to the font in many forms, like:

'./arial.ttf' or
'font/arial.ttf' or
'./font/arial.ttf' or
absolute path.

I use PHP 4.3.2 and GD 2.x lib.

Some scripts I finded on the net with same or similar declarations work, and some aren't.

What is the problem?

Please help me with this.

Milan Petrovic
Post Reply