But!

0. Redhat 7.1 without X.
1. I'm installed FreeType 2.0.4
2. Installed GD 1.8.4 (with support FreeType 2.0.4).
3. make configure:

CFLAGS="-O3 -mpentiumpro" CXX=gcc
CXXFLAGS="-O3 -mpentiumpro -felide-constructors -fno-exceptions -fno-rtti"
export CFLAGS CXX CXXFLAGS

./configure \
--disable-debug \
--with-config-file-path=/usr/local/lib \
--with-swf=/usr/local/lib/swf \
--with-mysql=/usr/local \
--prefix=/usr \
--with-apache=../apache_1.3.20 \
--enable-track-vars \
--with-xml \
--enable-track-errors \
--enable-force-cgi-redirect \
--enable-discard-path \
--enable-safe-mode \
--with-exec-dir=/home/httpd/cgi-bin/php4 \
--enable-calendar \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-gd=/usr/local \
--enable-gd-native-tt \
--with-zlib-dir=/usr/local \
--with-zlib \
--enable-trans-sid \
--enable-ftp \
--with-png-dir=/usr/local \
--with-freetype-dir=/usr/local \
--with-gettext \
--enable-memory-limit \

--enable-sockets

4. phpinfo():

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

It's ok? Yep.

5. Small Example from Documentation:


<?php
Header ("Content-type: image/gif");
$im = imagecreate (400, 30);
$black = ImageColorAllocate ($im, 0, 0, 0);
$white = ImageColorAllocate ($im, 255, 255, 255);
ImageTTFText ($im, 20, 0, 10, 20, $white, "lucon.ttf",
              "Testing... Omega: &#937;");
ImageGif ($im);
ImageDestroy ($im);
?>


Result:

<br>
<b>Warning</b>:  libgd was not built with TrueType font support
 in <b>/home1/3dgames/www.unreal2.ru/testpage/button.php</b> on line
<b>7</b><br>
<br>
<b>Warning</b>:  ImageGif: No GIF support in this PHP build in
<b>/home1/3dgames/www.unreal2.ru/testpage/button.php</b> on line
<b>8</b><br>


What is problem??? How to use TTF fonts?



-- 
PHP Install 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]

Reply via email to