ID: 14156 Updated by: sander Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: GD related Operating System: RH 7.2 PHP Version: 4.0.6 New Comment:
Now your problem is that your version of GD was not built with FreeType. You should build it yourself from the source or use a different package. Previous Comments: ------------------------------------------------------------------------ [2001-11-28 02:46:35] [EMAIL PROTECTED] it works fine with --with-freetype-dir=/usr/lib --enable-gd-native-ttf and i got support for TTF, but then I got "libgd was not built with TrueType" so I had to make change in source code that was exlained in bug #12065 # if HAVE_LIBGD20 & HAVE_LIBFREETYPE => # HAVE_LIBFREETYPE now I can use TTF functions but, did someone make changes in the source code, so people won't have to do it by themselves? JF ------------------------------------------------------------------------ [2001-11-21 12:51:59] [EMAIL PROTECTED] Use --enable-gd-native-ttf or --enable-gd-native-tt (yes that's a typo) if the first doesn't work. ------------------------------------------------------------------------ [2001-11-21 04:19:24] [EMAIL PROTECTED] 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: Ω"); 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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]