Bug #12065 Updated: "libgd was not built with TrueType font support" problem

From: Date: Thu, 12 Jul 2001 22:26:50 +0000
Subject: Bug #12065 Updated: "libgd was not built with TrueType font support" problem
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-59887@lists.php.net to get a copy of this message
ID: 12065 Updated by: wez Reported By: rip@undernet.org Old Summary: "libgd was not built with TrueType font support" problem Status: Feedback Bug Type: GD related Operating System: FreeBSD 4.3 PHP Version: 4.0.6 New Comment: (Please use the web interface to reply!) User Comment: Heh, sure... By default GD doesn't compile without freetype installed. Today here's what I've tried : FreeBSD 4.3 : Apache 1.3.20 + PHP 4.04pl1 + lib GD 1.8.3 + freetype 1.3.1 << doesn't work Apache 1.3.20 + PHP 4.06 + lib GD 1.8.3 + freetype 1.3.1 << doesn't work Apache 1.3.20 + PHP 4.06 + lib GD 1.8.4 + freetype 2.0.4 << doesn't work Apache 1.3.20 + PHP 4.06 + lib GD 2.0.1.beta + freetype 2.0.4 << doesn't work Linux 2.2 : Apache 1.3.20 + PHP 4.03pl1 + lib GD 1.8.3 + freetype 1.3.1 << worked Apache 1.3.20 + PHP 4.06 + lib GD 1.8.4 + freetype 2.0.4 << doesn't work The only difference in the version that works is PHP is not a dynamic module. Previous Comments: ------------------------------------------------------------------------ [2001-07-12 07:39:23] wez@php.net That "libgd was not built with TrueType font support" message comes from the GD library itself, not PHP. Did you compile the GD library with TrueType font support? --Wez. ------------------------------------------------------------------------ [2001-07-11 16:08:16] rip@undernet.org <? imagettfbbox(5, 0, "x.ttf", "the text"); ?> shows : Warning: libgd was not built with TrueType font support in /www/test2.php on line 1 phpinfo(); shows : gd GD Support enabled GD Version 1.6.2 or higher FreeType Support enabled FreeType Linkage with freetype JPG Support enabled PNG Support enabled WBMP Support enabled So basically I'd say something is not working correctly. I have tried with PHP 4.0.6 on 2 FreeBSD servers I have. Here's my configure line : ./configure --enable-inline-optimization --with-apxs --enable-calendar --enable-ftp --enable-track-vars --with-gd=/usr/local --with-freetype-dir=/usr/local --with-mysql All looks ok during config & compilation of PHP. Here's what shows: checking whether to include GD support... yes checking whether to enable truetype string function in gd... no checking for freetype(2)... yes checking whether to include include FreeType 1.x support... no checking whether to include T1lib support... no checking for gdImageString16 in -lgd... (cached) yes checking for gdImagePaletteCopy in -lgd... (cached) yes checking for gdImageCreateFromPng in -lgd... (cached) yes checking for gdImageCreateFromGif in -lgd... (cached) no ... I tried with --enable-gd-native-ttf and --enable-gd-imgstrttf, it's not better. Also note that there is an error in the configure script : > cat configure | grep -i native-tt --enable-gd-native-ttf GD: Enable TrueType string function in gd" # Check whether --enable-gd-native-tt or --disable-gd-native-tt was given. It's confusing... --enable-gd-native-tt or --enable-gd-native-ttf ? Thanks, Philippe Bourcier ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=12065&edit=1

« previous php.dev (#59887) next »