This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This is based on the work of ryan at retronetworks dot com | |
* Who posted the original function on the PHP manual. | |
* I had occasion to find the pixel width of the created string so now | |
* a) the function returns the length | |
* and b) there's a stripped-down imagettfbbox which does the same thing | |
* | |
* Ryan's original code: http://www.php.net/manual/en/function.imagettfbbox.php#51373 |
NewerOlder