note 65806 deleted from function.imagettfbbox by cmb

From: Date: Sun, 17 Nov 2019 08:53:01 +0000
Subject: note 65806 deleted from function.imagettfbbox by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-213087@lists.php.net to get a copy of this message
Note Submitter: Nimja ---- Warning: james.logsdon's function has a few flaws in copying my own function. Though he did a great job in making an overall nicer looking function it does have a few flaws. His function does not allow for long words (longer then the width) linebreaks (harder then it looks) and has a non-pixel perfect location. The problem with the imagettfbbox function is that different letters give a different x/y top-left coordinate. At least it looks that way for the eye. I 'solved' this by putting a space in front of every line and then offset the text by the width of that space. So, although some things of my function seem useless they do serve an important purpose.

« previous php.notes (#213087) next »