|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
php5-gd: imagettftext -- can't find fontsI have installed php5 and php5-gd, and I'm now getting an error when I try to use the imagettftext() function:
Warning: imagettfbbox(): Could not find/open font in /Users/mbclark/Sites/wview/banner.php on line 32 Warning: imagettftext(): Could not find/open font in /Users/mbclark/Sites/wview/banner.php on line 35 I've set the fontfile location to '/Library/Fonts/Arial' and '/Library/Fonts/Arial.ttf', but neither of these variations seems to work. Is there another trick to specifying the fontfile?
Brooks
________________________
_______________________________________________ macports-users mailing list macports-users@... http://lists.macosforge.org/mailman/listinfo.cgi/macports-users |
|
|
Re: php5-gd: imagettftext -- can't find fontsHave you checked the permissions on the files to be sure the www
server can read them? Set them to use and group of the www server, and for now, chmod 777 as a test. If that works, restrict them back down to your liking for your setup. -- Scott * If you contact me off list replace talklists@ with scott@ * On Oct 26, 2009, at 8:52 PM, M. Brooks Clark wrote: > I have installed php5 and php5-gd, and I'm now getting an error when > I try to use the imagettftext() function: > > Warning: imagettfbbox(): Could not find/open font in /Users/mbclark/ > Sites/wview/banner.php on line 32 > > Warning: imagettftext(): Could not find/open font in /Users/mbclark/ > Sites/wview/banner.php on line 35 > > I've set the fontfile location to '/Library/Fonts/Arial' and '/ > Library/Fonts/Arial.ttf', but neither of these variations seems to > work. Is there another trick to specifying the fontfile? > _______________________________________________ macports-users mailing list macports-users@... http://lists.macosforge.org/mailman/listinfo.cgi/macports-users |
|
|
Re: php5-gd: imagettftext -- can't find fontsOn Oct 26, 2009, at 22:52, M. Brooks Clark wrote: > I have installed php5 and php5-gd, and I'm now getting an error when > I try to use the imagettftext() function: > > Warning: imagettfbbox(): Could not find/open font in /Users/mbclark/ > Sites/wview/banner.php on line 32 > > Warning: imagettftext(): Could not find/open font in /Users/mbclark/ > Sites/wview/banner.php on line 35 > > I've set the fontfile location to '/Library/Fonts/Arial' and '/ > Library/Fonts/Arial.ttf', but neither of these variations seems to > work. Is there another trick to specifying the fontfile? I don't think there should be any trick. Where is the font file actually located -- /Library/Fonts/Arial or /Library/Fonts/Arial.ttf? What OS version is this? Have you tried other fonts? If you can't get it to work, can you post a snippet of PHP code that reproduces the problem, that I could try on my system? _______________________________________________ macports-users mailing list macports-users@... http://lists.macosforge.org/mailman/listinfo.cgi/macports-users |
|
|
Re: php5-gd: imagettftext -- can't find fontsThanks. Changing the /Library/Fonts directory and contents to group
www did the trick. Brooks http://www.clarkwx.net ________________________ On Oct 27, 2009, at 1:28 AM, Scott Haneda wrote: > Have you checked the permissions on the files to be sure the www > server can read them? Set them to use and group of the www server, > and for now, chmod 777 as a test. If that works, restrict them back > down to your liking for your setup. _______________________________________________ macports-users mailing list macports-users@... http://lists.macosforge.org/mailman/listinfo.cgi/macports-users |
| Free embeddable forum powered by Nabble | Forum Help |