Re: [PHP] How to use gd/php with no freetype?

2001-12-10 Thread Rasmus Lerdorf

Yes, you are out of luck without Freetype.  You need to install Freetype, 
then build GD against that and then finally build PHP against that 
Freetype-enabled GD.  

As for your second question, the ImageTTFText() function takes the TTF 
font filename as an argument.  See php.net/imagettftext

-Rasmus

On Thu, 6 Dec 2001 [EMAIL PROTECTED] wrote:

 Hello and thanks for your time. 
 
  After endless searching, I am still lost
 
 let's just assume I can't install freetype, and it looks like that for 
 matters I won't get into. (linux, raq 3) 
 
 What solution would allow me to specify fonts for text written into images? 
 Instead of using the default font, imagine I want to use helvetica. Am I 
 out of luck without freetype? And if somehow I get freetype installed does 
 php allow the method to name the font such as Arial and if so, which file 
 do I edit so by default I can specify the font so the text written to the 
 image looks as I intended? Thanks. I searched and couldn't find answer to 
 both q's, esp. the first. 
 
 Joel
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] How to use gd/php with no freetype?

2001-12-06 Thread Joelmon2001

Hello and thanks for your time. 

 After endless searching, I am still lost

let's just assume I can't install freetype, and it looks like that for 
matters I won't get into. (linux, raq 3) 

What solution would allow me to specify fonts for text written into images? 
Instead of using the default font, imagine I want to use helvetica. Am I 
out of luck without freetype? And if somehow I get freetype installed does 
php allow the method to name the font such as Arial and if so, which file 
do I edit so by default I can specify the font so the text written to the 
image looks as I intended? Thanks. I searched and couldn't find answer to 
both q's, esp. the first. 

Joel




Re: [PHP] How to use gd/php with no freetype?

2001-12-06 Thread Sebastian Wenleder

Hello and thanks for your time.

  After endless searching, I am still lost

let's just assume I can't install freetype, and it looks like that for
matters I won't get into. (linux, raq 3)

What solution would allow me to specify fonts for text written into images?
Instead of using the default font, imagine I want to use helvetica. Am I
out of luck without freetype? And if somehow I get freetype installed does
php allow the method to name the font such as Arial and if so, which file
do I edit so by default I can specify the font so the text written to the
image looks as I intended? Thanks. I searched and couldn't find answer to
both q's, esp. the first.

Joel

Hi Joel,

If you want to use PostScript fonts you may install the T1 Lib
ftp://sunsite.unc.edu/pub/Linux/libs/graphics/t1lib-1.3.1.tar.gz

compile T1, compile php  gdlib with T1 support

Best,
Sebastian

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]