Skip to content

Solution to “imagettfbbox() [function.imagettfbbox]: Could not find/open font”

2010 August 21
by Richard Knop

If you are using the imagettfbbox() PHP function and come across this error:

imagettfbbox() [function.imagettfbbox]: Could not find/open font

The solution is to use neither relative nor absolute path to the font but to use a path like this:

$font = './arial.ttf';
No comments yet

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS