Re: Re: imagettftext color problem
| From: | Richard Lynch | Date: | Fri, 11 Feb 2005 17:26:45 +0000 |
| Subject: | Re: Re: imagettftext color problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208543@lists.php.net to get a copy of this message | ||
Anni Hienola wrote:
>
> And to correct one mistake in the code that was kindly pointed out but is
> here just a typo:
>
>> $bg=imagecolorallocate($img, 255, 255, 255);
>> $font_color=imageallocatecolor($img, 0, 0, 0);
>
> Should be:
> $bg=imagecolorallocate($img, 255, 255, 255);
> $font_color=imagecolorallocate($img, 0, 0, 0);
>
> Full error check is on and the colors are correctly indexed as far as I
> can tell, but the TTF text stubbornly shows up yellow.
Maybe try switching to the other thing that uses TTF fonts...
You're using, what?, TrueType now? Try FreeType.
You might have to re-compile to install it, but the code changes should be
pretty quick global search and replace.
--
Like Music?
http://l-i-e.com/artists.htm