note 77915 added to function.imagepstext

From: Date: Wed, 19 Sep 2007 18:28:21 +0000
Subject: note 77915 added to function.imagepstext
Groups: php.notes 
Request: Send a blank email to php-notes+get-130601@lists.php.net to get a copy of this message
The documentation above is bad. It says $font: "Can be 1, 2, 3, 4, 5 for built-in fonts in latin2 encoding (where higher numbers corresponding to larger fonts) or any of your own font identifiers registered with imageloadfont()." But it can't. When I put in 1,2,3,4,5 I get "Warning: imagepstext() expects parameter 3 to be resource, integer given" I get the same thing when using imageloadfont() because imageloadfont() also returns an integer. The documentation should instead say: "resource returned from imagepsloadfont()." ---- Server IP: 209.41.74.194 Probable Submitter: 208.177.144.102 ---- Manual Page -- http://www.php.net/manual/en/function.imagepstext.php Edit -- https://master.php.net/note/edit/77915 Del: integrated -- https://master.php.net/note/delete/77915/integrated Del: useless -- https://master.php.net/note/delete/77915/useless Del: bad code -- https://master.php.net/note/delete/77915/bad+code Del: spam -- https://master.php.net/note/delete/77915/spam Del: non-english -- https://master.php.net/note/delete/77915/non-english Del: in docs -- https://master.php.net/note/delete/77915/in+docs Del: other reasons-- https://master.php.net/note/delete/77915 Reject -- https://master.php.net/note/reject/77915 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#130601) next »