Re: TTF Text not displaying correctly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 9 Oct 2004 23:33:46 -0500, Brent Clements
<bclem@xxxxxxxxxxxxxxxxxxxxxxxxxxx> 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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux