Are you trying to draw TTF fonts on a truecolor image? If so, GD-2.0.1 has a bug which turns of anti-aliasing of the fonts in that case. GD-2.0.2 will have the fix. For now, try it with a non-truecolor image and I bet the font will look just fine.
You can also ask Wes Furlong nicely for the patch which fixes this bug in GD 2. In order for ImageFTText() to work you have to make sure that HAVE_LIBGD20, HAVE_LIBFREETYPE and HAVE_GD_STRINGFTEX are all defined in your php_config.h In order to get that use configure flags like these: --with-gd=/home/rasmus/gd-2.0.1 --with-jpeg-dir=/usr --with-freetype-dir=/usr --enable-gd-native-ttf --enable-gd-imgstrttf --with-png-dir=/usr Also, never put "lib" in a configure flag. If Freetype is somewhere under /usr/local, then use --with-freetype-dir=/usr/local Don't put /usr/local/lib or the header files will not be found since they are likely not somewhere under /usr/local/lib -Rasmus On Thu, 21 Feb 2002, Ernie Dipko wrote: > Can't figure out where I am going wrong... > > I cant seem to use the imagefttext function in PHP..it returns a warning > saying "No FreeType 2 support in this PHP build". > The configure, make, and make install of all programs complete without error > and ImageTTFText() works (but the fonts do not look all that good), I just > cant seam to use ImageFTText(). > > I am using: > Solaris 8 > Gd-2.0.1 > Freetype-2.0.8 > Php-4.1.1 > Apache_1.3.22 > > Here is my php configure command.(from config.nice) > #! /bin/sh > # > # Created by configure > > './configure' \ > '--with-xml' \ > '--with-mysql=/usr/local/mysql' \ > '--with-apache=../apache_1.3.22' \ > '--enable-track-vars' \ > '--enable-sockets' \ > '--enable-bcmath' \ > '--with-gd' \ > '--enable-gd-native-ttf' \ > '--with-ttf=no' \ > '--with-freetype-dir=/usr/local/lib' \ > '--with-jpeg-dir=/usr/local/lib' \ > '--with-png-dir=/usr/local/lib' \ > '--with-zlib-dir=/usr/local/lib' \ > '--with-xpm-dir=/usr/local/lib' \ > "$@" > > I have looked at many news posts, search engines, web pages, etc. and have > seen a lot of problems mentioning the freetype is not compiled into gd...but > that is not the problem I am having.... I did do some of the suggestions > from these sources, just to try them, but the problem remains. > > I Have tried changing --with-freetype-dir=/usr/local/lib to /usr/local/, > Also tried -enable-gd-native-tt for a bug fix, I think form php-4.0.6... > > I don't wat to beg, but....PLEASE HELP!!! > Ernie Dipko > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php