tags:

views:

28

answers:

2

I want to put text over an image using GD.

When I use

ImageTTFText($image, $fontSize, $fontRotation, 7, 22, $colorShadow, 'arial.ttf', $str);

I get

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/index.php on line 17

Can I get PHP or GD to return a list of all available fonts per my system?

Thanks

Update

... or do I need to upload myself all the fonts myself that I wish GD to have access to?

A: 

If you can use Imagemagick there is always that

Iznogood
A: 

The fonts can be anywhere,but you must specify the full path to arial.ttf.

stillstanding