faqts : Computers : Programming : Languages : PHP : Function Libraries : Image

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

4 of 9 people (44%) answered Yes
Recently 4 of 9 people (44%) answered Yes

Entry

How can I use FreeType lib with PHP and IIS 4.0, how configure PHP to use this lib?

Aug 9th, 2005 20:09
Michael Phipps, Dimitrij Holovka,


On the Windows version of PHP the FreeType lib is included in the GD2
Library.

Create a quick script so you can check phpinfo() for the location of the
php.ini file that your php installation is using.


<?php
phpinfo();
?>

The location of php.ini file is stated in the first table in about the
5th row.

Edit the php.ini file.  Look for the following entry:

;extension=php_gd2.dll

remove the semi-colon so the entry now looks like

extension=php_gd2.dll

Now save the php.ini file, and restart your webserver so the settings
take effect.

Check phpinfo() again and look for a section headed GD.  In that section
there should be an entry that says freetype support enabled.

You should be right to start playing with the library - check the online
PHP manual for quick description on how to use the funciton

http://php.planetmirror.com/manual/en/function.imagettftext.php