RE: [PHP] determining the pixel width of a string
| From: | Don Read | Date: | Thu, 30 Aug 2001 21:03:07 +0000 |
| Subject: | RE: [PHP] determining the pixel width of a string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-65372@lists.php.net to get a copy of this message | ||
On 30-Aug-2001 John Meyer wrote:
> Is there anyway to determine the pixel width of a string?
>
$font=2;
$strpx=imagefontwidth($font) * strlen($str);
Regards,
--
Don Read dread@texas.net
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.