php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11704 TTF font rendering works under 4.0.5 and doesn't work on 4.0.6
Submitted: 2001-06-26 13:48 UTC Modified: 2001-06-27 09:36 UTC
From: doba at i dot am Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.0.6 OS: Windows NT 4.0 SP6A
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: doba at i dot am
New email:
PHP Version: OS:

 

 [2001-06-26 13:48 UTC] doba at i dot am
While using PHP 4.0.5 Win32 binary distribution, it works fine. With PHP 4.0.6 script fails with error like this "can't find arial.ttf in script d:\doba\www\test.php line X". Here is a short test script:

<?
$im = @ImageCreate(160, 45)
    or die ("Cannot Initialize new GD image stream");

$background_color = ImageColorAllocate ($im, 255, 255, 255);

$text_color = ImageColorAllocate ($im, 21, 106, 160);

// arial.ttf should be placed in the same
// directory with this script

ImageTTFText($im, 27, 0, 46, 36,  $text_color, "arial.ttf", "TEST");

ImagePng($im);
ImageDestroy($im);

?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-27 09:36 UTC] sniper@php.net
Submitting report with bogus email address is not allowed.
Thus bogusing this.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 23:01:27 2025 UTC