Home » Images » Image_Canvas » Bug #6406
method _mapFont missing
Details
| 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) |
Comments
[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