You are here: Re: [PHP] Re: imagettftext color problem « PHP « IT news, forums, messages
Re: [PHP] Re: imagettftext color problem

Posted by Richard Lynch on 02/11/05 19:26

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?



[Reply to this message]

Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация