Invalid font filename

A

Anonymous

Guest
Try:
Code:
...
$fontname = '/arial.ttf';
...
or
Code:
...
$fontname = 'C:\WINDOWS\Fonts\arial.ttf'
...

PHP.net said:
... Depending on which version of the GD library that PHP is using, it may attempt to search for files that do not begin with a leading '/' ...
^ That might be the problem its searching for it rather then opening it.
 
Back
Top