Re: determining the pixel width of a string
| From: | _lallous | Date: | Fri, 31 Aug 2001 08:53:22 +0000 |
| Subject: | Re: determining the pixel width of a string | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-65428@lists.php.net to get a copy of this message | ||
It also depends on the font!
it might be a fixed font or not a fixed font!
"Don Read" <dread@texas.net> wrote in message
news:XFMail.20010830160307.dread@texas.net...
>
> 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.