Date: 08/31/01
- Next message: Nikola Veber: "[PHP] help !"
- Previous message: _lallous: "[PHP] Re: Problem with microtime()"
- In reply to: Don Read: "RE: [PHP] determining the pixel width of a string"
- Next in thread: Don Read: "Re: [PHP] determining the pixel width of a string"
- Reply: Don Read: "Re: [PHP] determining the pixel width of a string"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Nikola Veber: "[PHP] help !"
- Previous message: _lallous: "[PHP] Re: Problem with microtime()"
- In reply to: Don Read: "RE: [PHP] determining the pixel width of a string"
- Next in thread: Don Read: "Re: [PHP] determining the pixel width of a string"
- Reply: Don Read: "Re: [PHP] determining the pixel width of a string"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

