php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11979 could not open ttf file
Submitted: 2001-07-09 10:30 UTC Modified: 2001-07-20 07:29 UTC
From: andrea at kelli dot it Assigned:
Status: Closed Package: GD related
PHP Version: 4.0.6 OS: WINDOWS 98
Private report: No CVE-ID: None
 [2001-07-09 10:30 UTC] andrea at kelli dot it
<?
Header ("Content-type: image/png");
$im = @imagecreate (700, 30)or die ("no image crate !!!!!");
$black = ImageColorAllocate ($im, 50, 50, 50);
$white = ImageColorAllocate ($im, 255, 255, 255);

ImageTTFText ($im, 20, 0, 10, 20, $white, "arial.ttf","QUESTA E' UNA PAGINA DINAMICA DI PROVA !!!")
or die ("something wrong !!!");

ImagePng($im);

?>


font is in the path !
win 98 
apache
mysql

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-09 10:34 UTC] derick@php.net
Try the full path to the font. and if that does not work, reopen this report.

Derick
 [2001-07-09 14:33 UTC] sniper@php.net
reopened. The full path didn't work.

 [2001-07-20 07:29 UTC] dbeu@php.net
fixed in cvs, thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 17:01:31 2024 UTC