RE: [PHP] Writing text into images, and setting text size [SOLVED]

2007-12-19 Thread Andrés Robinet
t > Cc: 'PHP List' > Subject: Re: [PHP] Writing text into images, and setting text size > [SOLVED] > > Rob, > > Thank you for helping me through this. > > > '--enable-gd-native-ttf' > > '--with-ttf' > > This was the key i

Re: [PHP] Writing text into images, and setting text size [SOLVED]

2007-12-19 Thread Dave M G
Rob, Thank you for helping me through this. '--enable-gd-native-ttf' '--with-ttf' This was the key information. I thought that having the GD modules installed meant I had TTF support. But after I saw that, I realized that TTF support was a separate module within the GD library. On my home

RE: [PHP] Writing text into images, and setting text size

2007-12-18 Thread Andrés Robinet
ob > -Original Message- > From: Dave M G [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 18, 2007 7:06 AM > To: Andrés Robinet > Cc: 'PHP List' > Subject: Re: [PHP] Writing text into images, and setting text size > > Rob, > > Thank you for re

Re: [PHP] Writing text into images, and setting text size

2007-12-18 Thread Dave M G
Rob, Thank you for responding. Try the following: ... you load PrintImage.php into your browser and you'll get a nice gray rectangle with the word "Works!" in the center of it. > If you don't get that... then you have a problem that is not related to path or to PHP per-se... Wow... thank yo

RE: [PHP] Writing text into images, and setting text size

2007-12-17 Thread Andrés Robinet
ailto:[EMAIL PROTECTED] > Sent: Tuesday, December 18, 2007 1:33 AM > To: 'Dave M G' > Cc: 'PHP List' > Subject: RE: [PHP] Writing text into images, and setting text size > > I'm tempted to say that the problem is that the system is not finding > the fo

RE: [PHP] Writing text into images, and setting text size

2007-12-17 Thread Andrés Robinet
which is project deadlines). Hope this helps, Rob > -Original Message- > From: Dave M G [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 18, 2007 12:31 AM > To: Andrés Robinet > Cc: 'PHP List' > Subject: Re: [PHP] Writing text into images, and setting text size >

Re: [PHP] Writing text into images, and setting text size

2007-12-17 Thread Dave M G
Andrés, Thank you for responding. Deploy the fonts along with your scripts... that's the only way I know. ... I do so for a custom CAPTCHA script I've made. This sounds like a good solution. I'm having a little trouble implementing it, however. I have what I believe is a freely distributab

Re: [PHP] Writing text into images, and setting text size

2007-12-17 Thread Richard Lynch
On Sun, December 16, 2007 7:59 pm, Dave M G wrote: > I've been able to write text into an image using the default fonts > available, with this command: > > ImageString($image, 5, $x - 20,$y-10, $text, $textColour); > > The problem is that the font that is identified by the index "5" is > too > smal

RE: [PHP] Writing text into images, and setting text size

2007-12-17 Thread Andrés Robinet
> -Original Message- > From: Dave M G [mailto:[EMAIL PROTECTED] > Sent: Monday, December 17, 2007 6:47 AM > To: Casey > Cc: PHP List > Subject: Re: [PHP] Writing text into images, and setting text size > > Casey, > > Thank you for replying. > >

Re: [PHP] Writing text into images, and setting text size

2007-12-17 Thread Dave M G
Casey, Thank you for replying. Try imagettftext(). I did, as explained: $font = '/usr/share/fonts/truetype/freefonts/FreeSans.ttf'; $imagettftext($image, 20, 0, $x, $y-10, $textColour, $font, $text); So my questions remain: 1. 'FreeSans.ttf' is in my /usr/share/fonts/truetype/freefonts

Re: [PHP] Writing text into images, and setting text size

2007-12-16 Thread Casey
Try imagettftext(). On Dec 16, 2007 5:59 PM, Dave M G <[EMAIL PROTECTED]> wrote: > PHP List, > > I've been able to write text into an image using the default fonts > available, with this command: > > ImageString($image, 5, $x - 20,$y-10, $text, $textColour); > > The problem is that the font that i

[PHP] Writing text into images, and setting text size

2007-12-16 Thread Dave M G
PHP List, I've been able to write text into an image using the default fonts available, with this command: ImageString($image, 5, $x - 20,$y-10, $text, $textColour); The problem is that the font that is identified by the index "5" is too small. But it seems that it can't be scaled in any way