Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.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] nosey
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.