|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-12-14 00:07 UTC] mike at mikeditto dot com
Description: ------------ This function is documented here: http://www.php.net/manual/en/gmagick.queryfontmetrics.php But browsing the current CVS head it does not appear to have been implemented in either gmagick_methods.c or gmagickdraw_methods.c. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 20:00:01 2025 UTC |
Example: $image = new Gmagick(); $image->newImage(200, 200, 'yellow', 'PNG'); $draw = new GmagickDraw(); $draw->setFontSize('12'); $color = new GmagickPixel('blue'); $draw->setFillColor($color); $draw->setFont('Vera.ttf'); $metrics = $image->queryfontmetrics($draw, 'Hello'); print_r($metrics);Gmagick's interface is minimal. To do something similar to the newPseudoImage() method available in Imagick: $gm = new Gmagick(); $gm->setSize(200, 200) ->read("caption:test") ->setImageFormat("png") ->write("pseudo_file.png");