DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-10-19 00:08:59

marcelr
Member
From: Eindhoven, NL
Registered: 2009-07-23
Posts: 5

php, GD and truetype fonts

Hi all,

I installed the latest PHP and GD as described elsewhere on this forum, to generate graphs from measurement data on a website.
As axis texts etc. i want to use freetype or truetype fonts through GD. However, when I run the scripts to generate the texts I get error messages like this:

PHP Fatal error:  Call to undefined function imagefttext() in /mnt/HD_a2/www/pages/plot.php on line 424
PHP Fatal error:  Call to undefined function imagettftext() in /mnt/HD_a2/www/pages/plot.php on line 424

Has anyone come across the same problem? Apparently GD hasn't been built with font support:

On my development host, php -i gives (in between an awful lot of other things): '--enable-gd-native-ttf'

I can't find that option in the build of the php I use (5.2.9-1, the latest from fonz).
Is there a simple way to solve this?

TIA,

marcelr

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB