|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-08-04 10:06 UTC] kalle@php.net
[2008-08-04 10:21 UTC] next_ghost at quick dot cz
[2008-08-04 11:21 UTC] bjori@php.net
[2008-08-04 13:58 UTC] kalle@php.net
[2008-08-05 07:53 UTC] kalle@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 06:00:01 2025 UTC |
Description: ------------ Documentation says that imagepsbbox() can calculate bounding box for built-in fonts (font index 1 through 5). It doesn't work. imagestring() which accepts built-in fonts uses php_find_gd_font() to load font information. imagepsbbox() uses only ZEND_FETCH_RESOURCE(). Reproduce code: --------------- $box = imagepsbbox("foo", 1, 1); Expected result: ---------------- No warnings Actual result: -------------- Warning: imagepsbbox(): supplied argument is not a valid Type 1 font resource in foo.php on line 1