Re: TTF Text not displaying correctly
| From: | Greg Donald | Date: | Sun, 10 Oct 2004 11:52:15 +0000 |
| Subject: | Re: TTF Text not displaying correctly | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199105@lists.php.net to get a copy of this message | ||
On Sat, 9 Oct 2004 23:33:46 -0500, Brent Clements
<bclem@imaginative-enterprises.com> wrote:
> Does anybody know off the top of their head why truetype font text would look greyed out?
>
> This is my code:
>
> <?php
>
> $im = @imagecreatefromgif("testimage.gif");
> $myfont = "inc/arial.ttf";
> $mycolor = imagecolorallocate($im,0,0,0);
Try imagecolorresolve() here instead.
> imagettftext($im, 8, 0, 580, 118, $mycolor, $myfont, "test string");
>
> imagejpeg($im);
> imagedestroy($im);
>
> ?>
>
> The text looks greyed out and it's a bit distorted.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/