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:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 10:56 AM
To: [EMAIL PROTECTED]
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
 [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to