Re: Can php support ttf??
| From: | Rahul Bhide | Date: | Tue, 23 Apr 2002 03:45:29 +0000 |
| Subject: | Re: Can php support ttf?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94104@lists.php.net to get a copy of this message | ||
Hi,
You need freetype-1.* library . You can get it at www.freetype.org . Then compile php
--with-ttf=/usr/local assuming you have the library in
/usr/local/lib .
I struggled a lot getting the TTF fonts to work in my env . Now I conclude that only specific
combinations of versions of php/gd/freetype work well
with each other . I am using
freetype-1.3.1
gd-1.8.4
php-4.0.4pl1
which works well for me .
hope this helps.
~Rahul
zhaoxd wrote:
> hello all:
> :)
> My version of gd is 1.8.4,my php is 4.1.2,which works on apache server whose version is 1.3.24
> and my OS is linux7.2.
>
> When I compiled gd ,I used some libraries,such as libpng-1.2.0,zlib-1.1.4,freetype-2.1.0,I want
> my gd can support ttf besides png image,is it enough?
>
> Can php support ttf?I hava just compiled gd in php,but I found it can not use some functions
> like ImageTTFtext and ImageTTFBBox,why?
>
> Is that right that gd-1.8.4 can't support functions about ttf ,just as gd cannot support
> gif?
>
> Thank you
> zhaoxd