Bug #16087 Updated: Could not find/open font

From: Date: Tue, 16 Jul 2002 10:23:58 +0000
Subject: Bug #16087 Updated: Could not find/open font
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14299@lists.php.net to get a copy of this message
ID: 16087 Updated by: news@dennisheck.de Reported By: mvc_aaa@yahoo.com Status: Bogus Bug Type: GD related Operating System: Linux RedHat 6.2 PHP Version: 4.1.2 New Comment: Hello at php.net! I experienced the same problem, but never before version 4.2.1 of php. I'm running php on win32, and the described error only occured with the new gd2.dll part of 4.2.1 package. The gd2 within 4.2.0 worked well with imagettf (But denies to work with php 4.2.1). Absolute or relative path did make no difference. I already wrote a mail to boutell.com, but if you can help solve the problem, please let me know. Thanks a lot, Dennis Heck Previous Comments: ------------------------------------------------------------------------ [2002-03-14 19:20:40] rasmus@php.net Use a full path. Font handling was changed in GD along the way, so if you insist that it is a bug, report it to the GD people, not us. ------------------------------------------------------------------------ [2002-03-14 19:06:31] mvc_aaa@yahoo.com Code: Header ("Content-type: image/png"); $im = imagecreate (400, 30); $black = ImageColorAllocate ($im, 0, 0, 0); $white = ImageColorAllocate ($im, 255, 255, 255); ImageTTFText ($im, 20, 0, 10, 20, $white, "./arial.ttf", "Testing... Omega: Ω"); ImagePNG ($im); ImageDestroy ($im); As Result: Warning: Could not find/open font in /home/denis/public_html/rambler/test2.php on line 8 Warning: Could not find/open font in /home/denis/public_html/rambler/test2.php on line 12 As i known, this is a old bug with all prev. versions, please fix it. (and in 4.1.3-devCVS too)... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16087&edit=1

« previous php.bugs (#14299) next »