Jump to content

$fontame file is invalid


Moez

Recommended Posts

Try capitalizing the font name and wrap it in quotes. Strings should be wrapped in quotes

$fontname = 'Arial';

If it still does not work, then copy the Arial.ttf font from C:\Windows\Fonts and put it in the same folder as your script. Then change   $filename = 'Arial';  to  $filename = './Artial.ttf';

 

 

Also What is this for?

$fontname-- ;

That does not make sense to me.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.