On Tue, Mar 08, 2005 at 08:18:58AM -0600, Brock Campbell wrote:
> I unfortunately do not know the exact previous version, I'm running
> sarge, and the update happened within the last week. Here is the script:

I can't reproduce this problem.

http://minbar.dodds.net/~vorlon/298518.php

Where is the arial.ttf font located on your system, relative to the script
itself?  I edited the script to point at 'msttcorefonts/Arial.ttf', which I
suppose should be the same font (located under /usr/share/fonts/truetype).

-- 
Steve Langasek
postmodern programmer

> _________________________________________________________
> <?php
> header("Content-type: image/jpg");
> $string = "Hello World";
> $im = imagecreatetruecolor(200,36);
> 
> $grey = imagecolorallocate($im, 99, 99, 99);
> $white = imagecolorallocate($im, 255,255,255);
> $black = imagecolorallocate($im, 0,0,0);
> imagefill($im, 0, 0, $grey);
> imagestring($im, 5, 0, 0, "Hello world!", $white);
> imagettftext($im, 12, 0, 10, 30, $white, "arial.ttf", "Hello World");
> imagejpeg($im,"", 100);
> imagedestroy($im);
> ?>
> _________________________________________________________

> I've also provided examples of this script in action on two web
> servers. 
> Functioning - Gentoo. GD version 2.0.28 PHP 4.3.10
> http://www.acceltech.ca/test.php
> 
> Non-funtioning - Sarge GD 2.0 or higher, PHP 4.3.10-8
> http://www.zenacus.com/scripts/ttf_test.php
> -- 
> Brock Campbell
> -- System Integration, Consulting, Disaster Recovery --
> ---             Accelerated Technology              ---
> --  [EMAIL PROTECTED]                (306)222-2259  --
> -----------        www.acceltech.ca         ----------- 
> 
> 

Attachment: signature.asc
Description: Digital signature

Reply via email to