Partner and Community Forums
imagettftext cannot find font
Last post Aug 19, 2013 08:04 PM by ServerIntellect_JB
Aug 08, 2013 08:58 PM|VTron21|LINK
I have a script that is part of a Wordpress Plugin. (Realy simple Captcha for Contact Form 7) it uses the imagettftext function to generate a small image with letters in it for the captcha. I have done everything thing I can think of to correct the issue
with this script to get it to work to no avail. even tried adding the fonts to the fonts folder and creating a c:\winnt\fonts folder and putting them there. The script does work properly on a wamp server.
The Server is Server 2012 with iis8, I have both php 5.4.17 and 5.3.24 installed (what is installed through web platform installer)
Excact error is:
Warning: imagettftext(): Could not find/open font in \wp-content\plugins\really-simple-captcha\really-simple-captcha.php on line 111
If you need any more info I'll be glad to provide it
Aug 19, 2013 08:04 PM|ServerIntellect_JB|LINK
I would recommend using ProcMon from the Microsoft SysInternals suite to find the location where your application is looking for the font.
You can run it off of http://live.sysinternals.com/Procmon.exe and create a filter for Path > Contains > [Font name] and browse the page.
Once you know the location you can simply drop the ttf files into that directory.
Hope this helps,