Reply to PHP with GD2 and FreeType1.x

Your name:

Reply:


Posted by Christian Andersen on 03/02/07 17:02

Hallo,

a friend has some problems with his hoster and the PHP-configuration.
Now I am trying to find the source of the problem.

I am trying to compile PHP (5.2.1 and/or 4.4.6) with bundled libgd
(2.0.28) but without FreeType 2. Is it right that I am not allowed to
use the configure-option "--enable-gd-native-ttf" in this case?

If I add --enable-gd-native-ttf the function imagettftext does not
work (text is not added to image). If I remove this option
imagettftext works.

The source of this behaviour seems to be that using --enable-gd-native-
ttf enables the macro USE_GD_IMGSTRTTF. This prevents ext/gd/gd.c from
executing any function to draw the string: gdImageStringFT/
gdImageStringFTEx/gdImageStringTTF are not available because GD2 is
used without FreeType 2. For this case gdttf should be called but --
enable-gd-native-ttf / USE_GD_IMGSTRTTF prevents this.

Can anybody confirm this

I think that this case should be avoided by the configure-script
(using GD2, FreeType2 not available => refuse --enable-gd-native-ttf).

Thanks for reading,

Christian

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация