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
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
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
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
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
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
>
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
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
> -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.
>
>
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
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 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
12 matches
Mail list logo