Bug #14156 Updated: No TTF support in this PHP build

From: Date: Wed, 21 Nov 2001 17:51:59 +0000
Subject: Bug #14156 Updated: No TTF support in this PHP build
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-71274@lists.php.net to get a copy of this message
ID: 14156
Updated by: sander
Reported By: kuba@3net.pl
Old Status: Open
Status: Closed
Bug Type: GD related
Operating System: RH 7.2
PHP Version: 4.0.6
New Comment:

Use --enable-gd-native-ttf or --enable-gd-native-tt (yes that's a typo) if the first
doesn't work.

Previous Comments:
------------------------------------------------------------------------

[2001-11-21 04:19:24] kuba@3net.pl

libgd-1.8.4
freetype-2.0.3-7
freetype-devel-2.0.3-7
freetype-utils-2.0.3-7

Although in big #9569 you've said that
GD extension only works with Freetype 1.x
Guys from gd are saying:
"If you want to use the TrueType font support, you must 
also install the FreeType 2.x library, including the 
header files."

while configuring, I got this:
checking whether to enable truetype string function in 
gd... no
checking for freetype(2)... no



my config line:
./configure --prefix=/usr --with-config-file-path=/etc 
--disable-debug --enable-shared --with-apxs=/usr/sbin/apxs 
--with-gd --with-jpeg-dir=/usr --with-png 
--with-ttf=/usr/lib --with-freetype=/usr/lib --with-zlib 
--enable-safe-mode --enable-track-vars --enable-ftp 
--with-mysql=/usr/local/mysql --with-dbase --with-gettext


script:
<?php
$im = imagecreate (400, 30);
$black = ImageColorAllocate ($im, 0, 0, 0);
$white = ImageColorAllocate ($im, 255, 255, 255);
ImageTTFText ($im, 20, 0, 10, 20, $white, 
"/path/arial.ttf",
              "Testing... Omega: &#937;");
ImagePNG ($im);
?>


error:
Warning: ImageTtfText: No TTF support in this PHP build


------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=14156&edit=1



Thread (4 messages)

« previous php.dev (#71274) next »