Re: [PHP] determining the pixel width of a string From: _lallous (elias_bachaalany <email protected>)
Date: 08/31/01

It also depends on the font!
it might be a fixed font or not a fixed font!

"Don Read" <dread <email protected>> wrote in message
news:XFMail.20010830160307.dread <email protected>
>
> 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 <email protected>
> -- 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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>