php5-gd: imagettftext -- can't find fonts
Ryan Schmidt
ryandesign at macports.org
Mon Oct 26 23:51:41 PDT 2009
On 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?
More information about the macports-users
mailing list