|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-08-06 11:41 UTC] sniper@php.net
[2001-08-06 11:41 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 09:00:01 2025 UTC |
The following code generates this warning (doesn't happen with 4.0.5): <b>Warning</b>: Could not find/open font in <b>d:\public_html\image_create.php</b> on line <b>357</b><br> Code: <?php Header ("Content-type: image/jpeg"); $im = imagecreate (400, 30); $black = ImageColorAllocate ($im, 0, 0, 0); $white = ImageColorAllocate ($im, 255, 255, 255); ImageTTFText ($im, 20, 0, 10, 20, $white, "D:/public_html/fonts/a.ttf", "Testing... Omega: Ω"); ImageJpeg ($im); ImageDestroy ($im); ?>