Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.5.0

Bug #6406 method _mapFont missing
Submitted: 2006-01-03 15:31 UTC
From: mail at text-indent dot net Assigned: nosey
Status: Closed Package: Image_Canvas
PHP Version: 4.3.11 OS: winxp
Roadmaps: (Not assigned)    
Subscription  


 [2006-01-03 15:31 UTC] mail at text-indent dot net
Description: ------------ I think a forgotten replacement is the problem. In GD.php is no method _mapFont existed and not inherit i think. Sorry for my bad englisch. Test script: --------------- <?php require_once 'Image/Canvas.php'; $canvas =& Image_Canvas::factory('png', array('width' => 200, 'height' => 30)); $canvas->setFont(array('ttf' => 'c:/windows/fonts/arial.ttf', 'size' => 20)); $canvas->show(); ?> Patch?: Canvas/GD.php (line 573): replace "$this->_mapfont()" with "Image_Canvas_Tool::fontMap" Expected result: ---------------- Fatal error: Call to undefined function: _mapfont() in C:\canvastest\pear\Image\Canvas\GD.php on line 573

Comments

 [2006-02-13 20:53 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!