Getting a Warning: imagettftext() [function.imagettftext]: Could not read font error message? Let’s fix it!
If you have a form on a your WordPress website and are trying to prevent spammers from flooding your site with deals on – well, you know the kinds of deals they promote, get yourself a “Completely Automated Public Turing Test To Tell Computers and Humans Apart” or a CAPTCHA. You are undoubtedly familiar with CAPTCHA codes. They look like this:
Personally I’m a big fan of MM Forms so I’ll use that plug-in as my example but the theory is the same no matter what you use.
Easy enough to set-up: download it and FTP into your WordPress PLUGINS directory just like you have done for other plugins. I’ll use Filezilla in my examples. Its a great, FREE FTP program.
But do you do if you load your webpage and you get the dreaded “Warning: imagettftext() [function.imagettftext]: Could not read font…” error message? Well you could Google it – but the results are uglyyyyyy. Hopefully I can save you some gray hairs. Here we go:
The directions for MM Forms read:
- Upload whole
mm-forms-communityfolder to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Make following directories writable (chmod 777) /exports/ and /captcha/tmp /upload
Ok Wait . . CHMOD???
Its simple: “The chmod command (abbreviated from change mode) is a Unix command that lets a programmer tell the system how much (or little) access it should permit to a file. It changes the file system modes of files and directories.” Basically, you don’t want people visiting your website to just drill into any folder on your server and be able to run commands, upload files etc.
- FTP into your website
- Go to the folder you need to change (or check) permissions on.
- Right Click on it.
- In Filezilla the command to select is “FILE PERMISSIONS” – If you are using a different FTP program look for similar message.
And Ta-Da! Changing from the default of 755 to 777 is as easy as checking two boxes!
OK Done! Everything works, right? Oh wait a minute . .. you load the webpage and get Warning: imagettftext() [function.imagettftext]: Could not read font in . . . error?
Usually this is caused by the permissions being wrong, the font files not being uploaded all the way or the font files being corrupted. Not OK. Let’s fix it!
Try this . .
- Find the folder inside the the plugin you are setting up what has the actual font files in it. In our case, its in wp-content/plugins/mm-forms/captcha/gentium
- Delete the .TTF and .VFB files. You’ll notice they are quite large compared to the other files in that directory:

And now for Trick #1.
99.9% of the time your FTP program is set to automatically decide how to transfer the files from your computer to the the server. 99.9% of the time you never have to change this setting. Welcome to the .1% of the time when you do.
In Filezilla, Select TRANSFER –> TRANSFER TYPE –> BINARY
Don’t worry about why for, or who what – Just select BINARY.
Trick #2 – upload the TTF and VFB files one at a time. Trust me.
Upload one, wait for it to finish (it will take longer than normal) and then check the filesize to make sure the whole file got to the server.
I repeat: check the filesize to make sure the whole file got to the server.
Repeat for your remaining files.
Cross your fingers.
Reload your webpage.
Sigh in relief. The dreaded Warning: imagettftext() [function.imagettftext]: Could not read font in . . . beast is no more!
And don’t forget to change your transfer mode back to AUTOMATIC!
Problem solved? All I ask for is Beer and Books. Beer and Books. (Kindle versions preferred)
Cheers!

















































July 13th, 2011 at 1:27 am
Useful information for every Developers.. like iam.. Thanks for this update..
July 18th, 2011 at 1:37 am
Most of girls love Moncler clothing, they always hope to own one, even dream it at night. This brand clothing is so expensive that they can not afford to buy it. If they can find the cheap Moncler Jackets For Women with high quality at the same time, they are surely very happy. Every girl must dream of Womens Moncler Jackets clothes. If a girl found a place where sell cheap Moncler jackets, Moncler Jackets, she will be very happy.
August 5th, 2011 at 3:13 am
I read your post . it was amazing.Your thought process is wonderful.The way you tell about things is awesome. They are inspiring and helpful.Thanks for sharing your information and stories.
iso 9000
December 9th, 2011 at 10:34 pm
he font files not being uploaded all the way or the font files being corrupted.
April 15th, 2012 at 11:02 pm
Usually this is caused by the permissions being wrong, the font files not being uploaded all the way or the font files being corrupted. Not OK. Let’s fix it!
April 15th, 2012 at 11:34 pm
They are inspiring and helpful.Thanks for sharing your information and stories.
April 16th, 2012 at 10:53 pm
If you have a form on a your WordPress website and are trying to prevent spammers from flooding your site with deals on – well, you know the kinds of deals they promote, get yourself a “Completely Automated Public Turing Test To Tell Computers and Humans Apart” or a CAPTCHA. You are undoubtedly familiar with CAPTCHA codes.
April 17th, 2012 at 12:32 am
If you have a form on a your WordPress website and are trying to prevent spammers from flooding
April 17th, 2012 at 2:40 am
If you have a form on a your WordPress website and are trying to prevent spammers from flooding your site with deals on – well, you know the kinds of deals they promote,
April 17th, 2012 at 2:53 am
Its simple: “The chmod command (abbreviated from change mode) is a Unix command that lets a programmer tell the system how much (or little) access it should permit to a file. It changes the file system modes of files and directories.” Basically, you don’t want people visiting your website to just drill into any folder on your server and be able to run commands, upload files etc.
April 17th, 2012 at 9:03 pm
If you have a form on a your WordPress website and are trying to prevent spammers from flooding your site with deals on – well, you know the kinds of deals they promote, get yourself a “Completely Automated Public Turing Test To Tell Computers and Humans Apart” or a CAPTCHA.
April 17th, 2012 at 11:20 pm
Your website to just drill into any folder on your server and be able to run commands, upload files etc.
April 18th, 2012 at 2:00 am
Usually this is caused by the permissions being wrong, the font files not being uploaded all the way or the font files being corrupted. Not OK. Let’s fix it!
April 18th, 2012 at 2:15 am
” Basically, you don’t want people visiting your website to just drill into any folder on your server and be able to run commands, upload files etc.
April 18th, 2012 at 2:51 am
If you have a form on a your WordPress website and are trying to prevent spammers from flooding your site with deals on – well, you know the kinds of deals they promote, get yourself
April 18th, 2012 at 3:36 am
ost of girls love Moncler clothing, they always hope to own one, even dream it at night. This brand clothing is so expensive that they can not afford to buy it. If they can find the chea
April 18th, 2012 at 10:05 pm
Its simple: “The chmod command (abbreviated from change mode) is a Unix command that lets a programmer tell the system how much (or little) access it should permit to a file. It changes the file system modes of files and directories
April 18th, 2012 at 10:22 pm
Usually this is caused by the permissions being wrong, the font files not being uploaded all the way or the font files being corrupted.
April 18th, 2012 at 10:35 pm
Personally I’m a big fan of MM Forms so I’ll use that plug-in as my example but the theory is the same no matter what you use.
April 18th, 2012 at 11:07 pm
Folder on your server and be able to run commands, upload files etc.
April 19th, 2012 at 12:13 am
Personally I’m a big fan of MM Forms so I’ll use that plug-in as my example but the theory is the same no matter what you use.
April 19th, 2012 at 1:30 am
Personally I’m a big fan of MM Forms so I’ll use that plug-in as my example but the theory is the same no matter what you use.
April 19th, 2012 at 1:58 am
I’ll use that plug-in as my example but the theory is the same no matter what you use.
April 19th, 2012 at 11:17 pm
It changes the file system modes of files and directories.” Basically,
April 19th, 2012 at 11:58 pm
you have a form on a your WordPress website and are trying to prevent spammers from fl
April 26th, 2012 at 2:38 am
If you have a form on a your WordPress website and are trying to prevent spammers from flooding your site with deals
April 27th, 2012 at 12:50 am
Moncler Jackets For Women with high quality at the same time, they are surely very happy.
April 27th, 2012 at 10:30 pm
time you never have to change this setting. Welcome to the .1% of the time when you do.
April 27th, 2012 at 11:18 pm
the font files not being uploaded all the way or the font files being corrupted. Not OK. Let’s fix it!