Re: [PHP] ImageTTFText leaves Black in letters

2008-06-26 Thread tedd
At 5:27 PM -0400 6/24/08, Stephen Pynenburg wrote: Hi all, I'm using imagettftext, and my script works perfectly, except that on these TTF fonts that I'm using, in any letter with a hole in the middle (letters like a, R, O) the hole is coloured black, not transparent. Is this a PHP thing, or do I

Re: [PHP] ImageTTFText leaves Black in letters

2008-06-24 Thread Stephen Pynenburg
Thanks for the response. Here's the relevant bit: $fontcolour = imagecolorallocatefromhex($i,$tcolor); $font2colour = imagecolorallocatefromhex($i, $t2color); $bg = imagecolorallocatefromhex($i,$bcolor); if($bcolor == '#00') $bg = imagecolorallocate($i, 0, 0, 0); if($tcolor == '#

RE: [PHP] ImageTTFText leaves Black in letters

2008-06-24 Thread Boyd, Todd M.
> -Original Message- > From: Stephen Pynenburg [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2008 4:27 PM > To: php-general@lists.php.net > Subject: [PHP] ImageTTFText leaves Black in letters > > Hi all, > I'm using imagettftext, and my script works perfectly, except that on > these