note 35588 added to function.swffont
| From: | phee at rn2 dot php dot net | Date: | Sun, 07 Sep 2003 07:26:31 +0000 |
| Subject: | note 35588 added to function.swffont | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-55561@lists.php.net to get a copy of this message | ||
You may want to take note that if you try to open a font file that isn't readable or
doesn't exist, you will NOT get any kind of error back. You will in fact get an SWFFont object
back that looks perfectly okay even though it isn't. Do something like this instead:
if (@is_readable($fontfile)) {
$font=new SWFFont($fontfile);
} else {
echo "ERROR: Font \"$fontfile\" couldn't be loaded!\n";
}
Hopefully this will get fixed eventually, but for now... that's all you can do.
----
Manual Page -- http://www.php.net/manual/en/function.swffont.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35588
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35588&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35588&report=yes