I've noticed several reports of problems which look like what I am experiencing, namely Image Captcha no longer works, except with the "built-in font", following a change of server from shared hosting to VPS. I gather that PHP5 does not support TTF fonts by default, and therefore that I have to add something to the PHP environment - but what? This is not specified! How do I get PHP to support TTF?
Thanks for the help

Comments

soxofaan’s picture

Title: How do you tell if PHP supports TTF? » TrueType font (TTF) support in PHP/GD?

How do I get PHP to support TTF?

This largely depends on your setup (localhost, shared hosting, VPS, linux server, windows server, ...) and more specifically how packages/software/libraries are managed: do you compile everything yourself, do you use out-of-the-box-installers, do you use a linux package manager, ...?
This discussion is a bit out of scope of the image CAPTCHA documentation.

Some more information:
For self compilation: http://www.php.net/manual/en/image.installation.php
If you're using a recent ubuntu linux, you just have to install the php5-gd package (comes with TTF support by default afaik)
...

joel_guesclin’s picture

In the end my hosting service switched on the TTF parameter in the PHP settings for GD, and now it works...

soxofaan’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.