Bug #18062 Updated: Generating true type font images not working

From: Date: Tue, 09 Jul 2002 22:00:00 +0000
Subject: Bug #18062 Updated: Generating true type font images not working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13646@lists.php.net to get a copy of this message
ID: 18062 Updated by: dpetrov@nchcapital.com Reported By: usenet@watson-wilson.ca Status: Feedback Bug Type: GD related Operating System: Linux 2.4.18 PHP Version: 4.2.1 New Comment: Apparently, $size and $text are undefined. To understand the reason, check this place: http://www.php.net/manual/en/language.variables.predefined.php Because of that, $xsize and $ysize gets equal to 10, and you end up generating blank 10x10 PNG image. Try to add this at the beginning of your script (before $box =): $size = $_GET['size']; $text = $_GET['text']; Hope it helps, Dmitry Previous Comments: ------------------------------------------------------------------------ [2002-07-09 17:34:44] sniper@php.net Does the suggestion from Dmitry fix this 'bug'? Or setting 'register_globals=on' in php.ini? ------------------------------------------------------------------------ [2002-07-03 09:39:17] usenet@watson-wilson.ca Here is the URL for the font: http://www.scifi2k.com/fonts85231647/download/worldofwater.zip ------------------------------------------------------------------------ [2002-07-03 08:29:45] derick@php.net Can you provide the font then? Derick ------------------------------------------------------------------------ [2002-07-03 08:25:55] usenet@watson-wilson.ca The very nature of this problem is generating an image using an externally referenced true type font. There is no way that I know of to include the font in the php script. ------------------------------------------------------------------------ [2002-07-02 21:43:18] sniper@php.net Provide a complete, self-contained script. The one here now can't be copy'pasted and run.. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/18062 -- Edit this bug report at http://bugs.php.net/?id=18062&edit=1

« previous php.bugs (#13646) next »