PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Images » Image_Canvas » Bug #6406

method _mapFont missing

Details

Submitted2006-01-03 15:31 UTC
Frommail at text-indent dot net
Assignednosey
StatusClosed
PackageImage_Canvas
PHP Version4.3.11
OSwinxp
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