LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 09-03-2003, 02:26 PM   #1
tommyc
LQ Newbie
 
Registered: Sep 2003
Posts: 5

Rep: Reputation: 0
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.
 
Old 09-03-2003, 10:11 PM   #2
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
I believe this page will help...

However, I think you posted this to the wrong forum
 
Old 09-04-2003, 12:02 AM   #3
tommyc
LQ Newbie
 
Registered: Sep 2003
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 09-04-2003, 02:21 AM   #4
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
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
 
Old 09-04-2003, 05:52 AM   #5
fskmh
Member
 
Registered: Jun 2002
Location: South Africa
Distribution: Customised Slackware64-14.1 with multilib
Posts: 237

Rep: Reputation: 55
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).
 
Old 09-04-2003, 02:00 PM   #6
tommyc
LQ Newbie
 
Registered: Sep 2003
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 09-04-2003, 08:27 PM   #7
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
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.
 
Old 09-05-2003, 12:44 AM   #8
tommyc
LQ Newbie
 
Registered: Sep 2003
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 09-05-2003, 01:01 AM   #9
tommyc
LQ Newbie
 
Registered: Sep 2003
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 09-05-2003, 11:56 AM   #10
fskmh
Member
 
Registered: Jun 2002
Location: South Africa
Distribution: Customised Slackware64-14.1 with multilib
Posts: 237

Rep: Reputation: 55
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP image-creation while loop taking forever benrose111488 Programming 9 07-09-2005 08:04 PM
php read file creation, modified date problem antony_csf Programming 3 08-18-2004 07:46 AM
grahpics and dump terminals mamta_k Linux - Hardware 0 05-19-2004 06:10 AM
PHP Package creation failure datadriven Slackware 4 12-31-2003 08:31 PM
Samba user creation with text file Skorpio Linux - Networking 1 10-02-2003 11:05 AM


All times are GMT -5. The time now is 10:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration