RE: [PHP] how do I find out how many pixels wide / tall a string will be with gd ?

From: Date: Fri, 23 Mar 2001 02:01:44 +0000
Subject: RE: [PHP] how do I find out how many pixels wide / tall a string will be with gd ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-45233@lists.php.net to get a copy of this message
Chris, why wouldn't you just use the html way of right justifying text? ie <align="right"> so in php just use echo "<align=\"right"\> blah foo boo"; -----Original Message----- From: Chris Lee [mailto:lee@mediawaveonline.com] Sent: Friday, March 23, 2001 10:56 AM To: php-general@lists.php.net Subject: [PHP] how do I find out how many pixels wide / tall a string will be with gd ? I would like to right justify some text, as far as I know, I will need to determin how many pixels wide a string will be on the image, then subtract that value from the x cord of the line your right justifing it to. you know have the x cord for the text. am I correct? if so how do I figure our how long my string is ? -- Chris Lee lee@mediawaveonline.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#45233) next »