Page 1 of 1

GD Lib Font Loading Problem

Posted: Fri Jul 25, 2003 6:13 pm
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