LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   php creation of TTF text grahpics on gd (https://www.linuxquestions.org/questions/slackware-14/php-creation-of-ttf-text-grahpics-on-gd-88887/)

tommyc 09-03-2003 01:26 PM

php creation of TTF text grahpics on gd
 
I've got a problem with the gd graphics library. Can't find it.

I can create text on graphics created with the default fonts, but I want to use TTF fonts I have from ms.

phpinfo() shows php support for gd, png, native ttf, jpeg, and only support in gd for the same images.

I suspect I must compile php and gd with additional support. I have looked at the install packages and don't see any way to add support for other features.

Can someone tell me how to add support to php and gd? I can't find the files to configure to make the changes. Or a tool that I can make the changes with.

Azmeen 09-03-2003 09:11 PM

I believe this page will help...

However, I think you posted this to the wrong forum :)

tommyc 09-03-2003 11:02 PM

Nope, this is the right forum I think, I have Slackware 9.0 with a full install.

If you meant I should have posted in another forum because it is a newbie forum, thanks for the compliment, I feel like a newbie.

I'll try out the page you suggested, there were some interesting examples.

Azmeen 09-04-2003 01:21 AM

Quote:

Originally posted by tommyc
Nope, this is the right forum I think, I have Slackware 9.0 with a full install.

If you meant I should have posted in another forum because it is a newbie forum, thanks for the compliment, I feel like a newbie.

I'll try out the page you suggested, there were some interesting examples.

Yes, but your problem is not Slackware-specific, but more towards programming... and a more suitable board would be here :)

fskmh 09-04-2003 04:52 AM

Hi tommyc

AFAIK, the gd package does not come with Slackware. You can go and download the source for 2.0.15 and make your own package with checkinstall, or you can download it from linuxpackages.net (search for gd and not libgd).

tommyc 09-04-2003 01:00 PM

Thanks AFAIK.
I appreciate your answering my question.

Something else, a Slackware full install must use scripts or something to pass parameters for the structure, dependencies, and other things during installation. After an install, how do you add features to say, php, or any application? I can't find configue files to change applications already installed.

Azmeen 09-04-2003 07:27 PM

Quote:

Originally posted by tommyc
Thanks AFAIK.
I appreciate your answering my question.

Something else, a Slackware full install must use scripts or something to pass parameters for the structure, dependencies, and other things during installation. After an install, how do you add features to say, php, or any application? I can't find configue files to change applications already installed.

You can use pkgtool for that.

Alternatively you can use installpkg packagename.tgz to install Slackware packages.

tommyc 09-04-2003 11:44 PM

Thanks Azmeen,

I tried upgradepkg and installpkg and both ran but there is no way to pass a parameter that I can tell. It installs the same as I have from the full install.

I don't have support in phpinfo() for Freetype or TTF in php or gd. I did get gd and ran it and it installed OK. I'm sure I need to tell php somehow --with-Freetype or something like that much like running ./configure in a new instalation.

Any help is appreciated.

tommyc 09-05-2003 12:01 AM

Hey fskmh,

Sorry I referred to you as AFAIK; I didn't notice it as an accronym; I did appreciate the comment about gd not being in the distribution. I got it and ran installpkg, so now I know I have it.

It still doen't work. I think I need to somehow make php know I want to use Freetype or TTF fonts with gd.

There must be a way to update or make changes. I've thought of trying passing a paramenter with installpkg, but using only one parameter might change something I don't want changed.

Any other ideas about how to manage it without installing everything new.

fskmh 09-05-2003 10:56 AM

Hi tommyc

Regarding your 3rd to last post, I would refer you to /etc/apache/mod_php.conf
I'm not convinced that any extra steps are required after enabling php (/etc/apache/httpd.conf) and installing gd. I am using a package called grafist that requires php and gd, and it works fine.
As far as the use of truetype fonts goes, gd requires freetype, which implies that it can render truetype fonts. I suspect that you need to obtain some documentation on how fonts are handled by gd - I have seen documentation like this in a file called index.html in the gd source tarball.
Hope this helps :-D.


All times are GMT -5. The time now is 12:06 PM.