Re: determining the pixel width of a string

From: Date: Fri, 31 Aug 2001 08:36:48 +0000
Subject: Re: determining the pixel width of a string
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65433@lists.php.net to get a copy of this message
On 31-Aug-2001 _lallous wrote: > It also depends on the font! > it might be a fixed font or not a fixed font! > True, but the five installed GD fonts are fixed cell fonts. > "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. > > -- 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.

« previous php.general (#65433) next »